Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Key Error in Python
#5
If it is line 97 (full traceback Wall ) - data_cleaned may be an empty dictionary

I am not sure what you are trying to achieve - your code seems over-complicated, but that may be the reason.
Test everything in a Python shell (iPython, Azure Notebook, etc.)
  • Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
  • Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
  • You posted a claim that something you did not test works? Be prepared to eat your hat.
Reply


Messages In This Thread
Key Error in Python - by Nirmal - Aug-01-2018, 07:12 AM
RE: Key Error in Python - by wavic - Aug-01-2018, 08:47 AM
RE: Key Error in Python - by volcano63 - Aug-01-2018, 09:14 AM
RE: Key Error in Python - by Nirmal - Aug-01-2018, 11:35 AM
RE: Key Error in Python - by volcano63 - Aug-01-2018, 12:24 PM
RE: Key Error in Python - by Nirmal - Aug-01-2018, 12:49 PM
RE: Key Error in Python - by wavic - Aug-01-2018, 02:07 PM
RE: Key Error in Python - by volcano63 - Aug-01-2018, 02:17 PM
RE: Key Error in Python - by Nirmal - Aug-01-2018, 02:46 PM
RE: Key Error in Python - by volcano63 - Aug-01-2018, 03:14 PM
RE: Key Error in Python - by Nirmal - Aug-01-2018, 03:20 PM
RE: Key Error in Python - by volcano63 - Aug-02-2018, 10:07 AM
RE: Key Error in Python - by Nirmal - Aug-09-2018, 02:40 PM

Forum Jump:

User Panel Messages

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