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
#11
[Image: open?id=1e3Av8LSW6S03pvIsgYyOHse55EFgY65W]

Because I created unique id (ID1), Iam getting ID col in multiple rows for T3, T4, TSH values. IF I remove ID1 and try to get in 1 row I might still get duplicate error. Please suggest a way to get rid of this issue.
Reply
#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


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