Reputation: 13015
I have a dataframe season_statistics_T1
, its related information is given as follows. Each operation looks normal except season_statistics_T1.head().to_dict()
, which gives the key error message. I am not sure why.
Upvotes: 2
Views: 344
Reputation: 26676
Lets try
df.head().to_json(orient="split")
Or
df.to_json(orient="records")
Upvotes: 1