Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

save multiple df to pkl

import os

out = 'mypathmyfolder'

df_list = [df1, df2, df3, df4]
for i, df in enumerate(df_list, 1):
    df.to_pickle(os.path.join(out, f'df{i}.pkl')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #multiple #df #pkl
ADD COMMENT
Topic
Name
7+5 =