This should be easily done by delegating to https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_pickle.html