Python Forum
ValueError: Index contains duplicate entries, cannot reshape” error when I try to use
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ValueError: Index contains duplicate entries, cannot reshape” error when I try to use
#12
In the above I had to pivot few cols, when do that I get duplicates error
"ValueError: Index contains duplicate entries, cannot reshape” error when I try to use
So I added a unique ID col so it pivots but then I get multiple rows for same id , instead I need them to be in one single row. Please see the screenshot attached.
Multiple_Row_issue

how do I get rid of ti, I do not need first column , I just added it to avoid duplicates error.Please suggest. Appreciate your help!
Reply


Messages In This Thread
RE: ValueError: Index contains duplicate entries, cannot reshape” error when I try to use - by Smiling29 - Oct-26-2019, 09:52 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  pyscript index error while calling input from html form pyscript_dude 2 1,158 May-21-2023, 08:17 AM
Last Post: snippsat
  Index error help MRsquared 1 900 May-15-2023, 03:28 PM
Last Post: buran
  I'm getting a String index out of range error debian77 7 2,599 Jun-26-2022, 09:50 AM
Last Post: deanhystad
  Numpy reshape mr_byte31 1 1,196 Apr-22-2022, 06:33 PM
Last Post: deanhystad
  Reshape txt file into particular format using python shantanu97 0 1,529 Dec-10-2021, 11:44 AM
Last Post: shantanu97
  Python Error List Index Out of Range abhi1vaishnav 3 2,513 Sep-03-2021, 08:40 PM
Last Post: abhi1vaishnav
  Strange error ValueError: dimension mismatch Anldra12 0 2,081 Aug-17-2021, 07:54 AM
Last Post: Anldra12
  Index error - columns vs non-column Vinny 3 5,141 Aug-09-2021, 04:46 PM
Last Post: snippsat
  How to resolve Index Error in my code? codify110 6 3,309 May-22-2021, 11:04 AM
Last Post: supuflounder
  Why getting ValueError : Math domain error in trig. function, math.asin() ? jahuja73 3 4,024 Feb-24-2021, 05:09 PM
Last Post: bowlofred

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020