I am trying to save a dict to json but no matter what I try I get either errors that
Object of type DataFrame is not JSON serializable OR
Dict object has no attribute to json
I follow many tutorials on how to do that eg
json = json.dumps(pdData) f = open("dict.json","w") # write json object to file f.write(json) # close file f.close()
But still I get errors like the aboves.
Any advice? Thanks