Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pandas Help
#8
I've merged your threads. Please don't create new threads just because you're not getting an answer.

I don't know about Pandas, but your current code is failing for pure-Python reasons:
'state'["California", "Arizona", "Nevada", "Utah"]
isn't valid because you're trying to use a string index into a string. Strings can only be indexed with an integer.
Reply


Messages In This Thread
Python help... - by cliffordhubbard - Apr-24-2020, 07:12 PM
RE: Pandas Help - by micseydel - Apr-27-2020, 10:54 PM
RE: Pandas Help - by mirai - Jun-05-2020, 05:16 AM
RE: Python help... - by brianwoong - Dec-05-2020, 06:33 AM
RE: Python help... - by Jeff900 - Apr-24-2020, 07:36 PM
RE: Python help... - by cliffordhubbard - Apr-24-2020, 08:37 PM
RE: Python help... - by Jeff900 - Apr-24-2020, 08:48 PM
RE: Python help... - by deanhystad - Apr-24-2020, 09:28 PM
RE: Python help... - by cliffordhubbard - Apr-27-2020, 12:15 PM
Pandas Help - by cliffordhubbard - Apr-27-2020, 07:02 PM

Forum Jump:

User Panel Messages

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