1 import pandas as pd 2 import six.moves.cPickle as cPickle 3 import gzip 4 5 filePath = './a/data.pkl.gz' 6 f = gzip.open(filePath,'rb') 7 df = pd.DataFrame() 8 df = cPickle.load(f) 9 f.close() 10 print(df)
运行结果:
标签:cPickle,python,gz,df,pd,import,pkl From: https://www.cnblogs.com/szeto/p/16599328.html