import pickle import gzip import pandas as pd def decompress_object(filename): with gzip.open(filename, 'rb') as f: obj = pickle.load(f) return obj