Skip to content
RED SAG Skills
medium10 pts · first answer countspythonpandasreshaping

pivot raises a duplicate-entries error

df.pivot(index='store', columns='month', values='sales') raises 'Index contains duplicate entries, cannot reshape'. What is the usual fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions