Answers for "pandas pickle file"

5

pandas save file to pickle

import pandas as pd
df.to_pickle(file_name) # save
df = pd.read_pickle(file_name) # load
Posted by: Guest on June-16-2020
1

python load pandas from pickle

>>> unpickled_df = pd.read_pickle("./dummy.pkl")
>>> unpickled_df
   foo  bar
0    0    5
1    1    6
2    2    7
3    3    8
4    4    9
Posted by: Guest on May-22-2020

Python Answers by Framework

Browse Popular Code Answers by Language