def appendDfToPickle(df, filePath):
import os
import pandas as pd
if not os.path.isfile(filePath):
df.to_pickle(filePath)
else:
tempDF=pd.read_pickle(filePath)
tempDF=tempDF.append(df, ignore_index = True)
tempDF.to_pickle(filePath)
评论列表
文章目录