""" write/read your pandas.DataFrame as a pickle (.pkl) file to keep the list data structure """ # write df.to_pickle('path/to/filename.pkl') # read df.read_picke('path/to/filename.pkl')