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

20. Pandas的stack和pivot实现数据透视 这里面有点小问题 #4

Open
wangqlpython opened this issue Feb 25, 2020 · 0 comments

Comments

@wangqlpython
Copy link

df_group = df.groupby([df["pdate"].dt.month, "Rating"])["UserID"].agg(pv=np.size)
这句执行不了
改df_group = df.groupby([df["pdate"].dt.month, "Rating"])["UserID"].agg({"pv":np.size})

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