pandas ValueError: cannot reindex from a duplicate axis
Answers
Answered by
1
In my case, this error popped up not because of duplicate values, but because I attempted to join a shorter Series to a Dataframe: both had the same index, but the Series had fewer rows (missing the top few). The following worked for my purposes:
Similar questions
Science,
7 months ago
Hindi,
7 months ago
Computer Science,
7 months ago
Physics,
1 year ago
Science,
1 year ago