Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
original_df = pd.DataFrame({"f1": range(6), "b1": range(6, 12)})
original_df
Out[2]:
f1 b1
0 0 6
1 1 7
2 2 8
3 3 9
4 4 10
5 5 11
In [3]:
original_df.to_pickle("./dummy.pkl")
In [4]:
unpickled_df = pd.read_pickle("./dummy.pkl")
unpickled_df
Out[4]:
f1 b1
0 0 6
1 1 7
2 2 8
3 3 9
4 4 10
5 5 11
In [5]:
import os
os.remove("./dummy.pkl")