decompress_pickle

41

# Load any compressed pickle file
def decompress_pickle(file):
 data = bz2.BZ2File(file, ‘rb’)
 data = cPickle.load(data)
 return data

Comments

Submit
0 Comments