📜  将多个 df 保存到 pkl - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:23.054000             🧑  作者: Mango

代码示例1
import os

out = 'mypath\\myfolder\\'

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')