python 读取.pkl.gz文件
作者:互联网
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 来源: https://www.cnblogs.com/szeto/p/16599328.html