how can i efficiently move from a pandas dataframe to json,aggregated_df.reset_index().to_json(orient='index')