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

pivot returns an error, possibly due to changes from pandas #55

Open
artxz opened this issue Apr 10, 2024 · 0 comments
Open

pivot returns an error, possibly due to changes from pandas #55

artxz opened this issue Apr 10, 2024 · 0 comments

Comments

@artxz
Copy link

artxz commented Apr 10, 2024

matrix = agg_weights_df.pivot(col_pre, col_post, weight_col)

error:
TypeError: DataFrame.pivot() takes 1 positional argument but 4 were given

suggest fix
matrix = agg_weights_df.pivot(index= col_pre, columns= col_post, values= weight_col)

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