BUG: Wrong error message is raised when columns=None in df.pivot #30924
Labels
Error Reporting
Incorrect or improved errors from pandas
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Milestone
From docstring,
index
andvalues
can be optional in df.pivot, butcolumns
is nothttps://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.pivot.html
However, the error message is confusing now, should raise
columns
is not optional.Code example:
The text was updated successfully, but these errors were encountered: