Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

decompress_pickle

# Load any compressed pickle file
def decompress_pickle(file):
 data = bz2.BZ2File(file, ‘rb’)
 data = cPickle.load(data)
 return data
Source by betterprogramming.pub #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
8+2 =