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

Dataframe pivot is used with wrong syntax #8

Open
alex-lyapin opened this issue Feb 21, 2024 · 0 comments
Open

Dataframe pivot is used with wrong syntax #8

alex-lyapin opened this issue Feb 21, 2024 · 0 comments

Comments

@alex-lyapin
Copy link

Standard example:

from wfmap.data import load_data
from wfmap import wafermap

data = load_data()

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

It points to the lines:

    sb.heatmap(df.pivot(row, col, value), cmap=cmap,
               vmin=vlim[0], vmax=vlim[1], robust=True, ax=ax)

Telling that df.pivot should not be used like that but following syntax DataFrame.pivot(index=None, columns=None, values=None)

Python 3.10, Pandas 2.2.0, wfmap 1.0.3

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