a_dataframe.to_pickle("a_file.pkl") code example
Example: pandas save file to pickle
import pandas as pd
df.to_pickle(file_name) # save
df = pd.read_pickle(file_name) # load
import pandas as pd
df.to_pickle(file_name) # save
df = pd.read_pickle(file_name) # load