baby-names-analysis icon indicating copy to clipboard operation
baby-names-analysis copied to clipboard

Pandas error KeyError: 'gender'

Open jairajsahgal opened this issue 4 years ago • 0 comments

Apparently in lines #Step by step approad, the one-liners can be found below their respective tables df=df[df["gender"]=="M"] df=df[["name","count"]] df=df.groupby("name") df=df.sum() df=df.sort_values("count",ascending=False) df.head(10) Error is coming after running it second time. Also, the one-liner is also not running. This is the first time I have raised issue in Github

jairajsahgal avatar Sep 26 '19 12:09 jairajsahgal