Skip to content
Advertisement

Tag: to-json

How to convert a dataframe to nested json

I have this DataFrame: All the dataframe fields are ASCII strings and is the output from a SQL query (pd.read_sql_query) so the line to create the dataframe above may not be quite right. And I wish the final JSON output to be in the form I realize that may not be ‘normal’ JSON but that is the format expected by

Advertisement