DOC: Pivot() example call incorrectly used and would give "error: duplicate index" #61058
Open
1 task done
Labels
Error Reporting
Incorrect or improved errors from pandas
Needs Info
Clarification about behavior needed to assess issue
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Pandas version checks
main
hereLocation of the documentation
doc/source/user_guide/reshaping.rst
Documentation problem
the table given as an example for pivot() is wrong and cant be used. it would return "error duplicate index" as there are duplicate values in the column given for "index" parameter.
Suggested fix for documentation
The "foo" column must contain unique values
The text was updated successfully, but these errors were encountered: