pand zapisz plik na marynę
import pandas as pd
df.to_pickle(file_name) # save
df = pd.read_pickle(file_name) # load
Vivacious Vendace
import pandas as pd
df.to_pickle(file_name) # save
df = pd.read_pickle(file_name) # load
>>> 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
# save and load of DataFrames
dateiTraining = "daten/Training.zip"
trainDataFrame.to_pickle( self.dateiTraining )
if ( os.path.exists( dateiTraining ) ):
testDataFrame = panda.read_pickle( dateiTraining )