Apr-27-2020, 10:54 PM
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:
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.