When I run this code
import pandas as pd import numpy as np def add_prop(group): births = group.births.astype(float) group[\'prop\'] = births/births.
your code is correct. just put:
import matplotlib as plt
for diplaying you plot:
plt.show()