Skip to content

Instantly share code, notes, and snippets.

View GabrielSGoncalves's full-sized avatar
🏀
Data Engineer @ Big Data

GabrielSGoncalves GabrielSGoncalves

🏀
Data Engineer @ Big Data
View GitHub Profile
@GabrielSGoncalves
GabrielSGoncalves / compressed_pickle.py
Created June 5, 2020 14:29 — forked from cwidmer/compressed_pickle.py
save/load compressed pickled objects in python
import cPickle
import bz2
def save(filename, myobj):
"""
save object to file using pickle
@param filename: name of destination file
@type filename: str