Saving dataframe into a file

Is it possible to save a trial data frame into a file? For example, I have the following one trial dataframe from all run trials of this call after a very long run.

dfs = {result.log_dir: result.metrics_dataframe for result in results}

What’s the best way to save it to a datafile for analysis later?

It’s a pandas dataframe - you should be able to simply use pandas operations such as to_csv, to_pickle, to_parquet etc. depending on your preferred format.

1 Like