Python Forum
List index out of range when turning CSV into dict
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
List index out of range when turning CSV into dict
#6
Obviously this ain't csv file on the image. This is spreadsheet, probably Excel. While saving in Excel as csv it inserts separator defined in language settings and also preserves empty cells (like: something,,else,,).

So some clarity is needed - what kind of file there actually is.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: List index out of range when turning CSV into dict - by perfringo - May-10-2021, 06:31 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to fix list index out of range longmen 26 6,260 Apr-27-2022, 05:46 PM
Last Post: deanhystad
  list index out of range OliverG 3 2,401 Sep-03-2021, 12:04 AM
Last Post: itsmycode
  Index List a04j 2 2,967 Jul-10-2021, 01:14 PM
Last Post: BashBedlam
  Input validation for nested dict and sorting list of tuples ranbarr 3 3,972 May-14-2021, 07:14 AM
Last Post: perfringo
  List vs index: Frederico_Caldas 5 3,680 Jul-03-2020, 10:55 AM
Last Post: DeaD_EyE
  To find the index of the first occurrence of the key in the provided list Angry_bird89 4 3,333 Jun-20-2020, 06:53 PM
Last Post: Angry_bird89
  Python Adding +1 to a list item cointained in a dict ElReyZero 1 2,109 Apr-30-2020, 05:12 AM
Last Post: deanhystad
  Dict from list - HELP! PLEASE! cherry_cherry 16 5,688 Apr-09-2020, 04:01 AM
Last Post: cherry_cherry
  list index out of range mcgrim 2 2,954 May-25-2019, 07:44 PM
Last Post: mcgrim
  Turning column of 8 digit numbers into three seperate columns Wade334 1 2,206 May-11-2019, 02:52 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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