Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pandas error KeyError: 'gender' #7

Open
jairajsahgal opened this issue Sep 26, 2019 · 0 comments
Open

Pandas error KeyError: 'gender' #7

jairajsahgal opened this issue Sep 26, 2019 · 0 comments

Comments

@jairajsahgal
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant