PhantomInsights / baby-names-analysis

Data ETL & Analysis on the dataset 'Baby Names from Social Security Card Applications - National Data'.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pandas error KeyError: 'gender'

jairajsahgal opened this issue · 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