79299240

Date: 2024-12-21 10:26:50
Score: 1
Natty:
Report link

In python3 you can convert each pd.DataFrame object in the given list

json_dfs = json.dumps([df.to_json() for df in [df1, df2]])

To convert it back, simply use

dfs = [pd.read_json(df_js) for df_js in json.loads(json_dfs)]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KiRUN