import pickle with open('path/to/df.pkl', 'wb') as f: pickle.dump(df, f)