Top "Pickle" questions

An object serialization module for Python.

Pandas Dataframe AttributeError: 'DataFrame' object has no attribute 'design_info'

I am trying to use the predict() function of the statsmodels.formula.api OLS implementation. When I pass a new …

python pandas scipy pickle statsmodels
Loading a large dictionary using python pickle

I have a full inverted index in form of nested python dictionary. Its structure is : {word : { doc_name : [location_list] } } …

python pickle inverted-index
What's the exact usage of __reduce__ in Pickler

I know that in order to be picklable, a class has to overwrite __reduce__ method, and it has to return …

python-2.7 pickle
ImportError: No module named copy_reg pickle

I'm trying to unpickle an object stored as a blob in a MySQL database. I've manually generated and stored the …

python pickle
Python Multiprocessing Lib Error (AttributeError: __exit__)

Am getting this error when using the pool.map(funct, iterable): AttributeError: __exit__ No Explanation, only stack trace to the …

python multiprocessing pickle with-statement contextmanager
How can I pickle a dynamically created nested class in python?

I have a nested class: class WidgetType(object): class FloatType(object): pass class TextType(object): pass .. and an object that …

python class nested pickle
Common use-cases for pickle in Python

I've looked at the pickle documentation, but I don't understand where pickle is useful. What are some common use-cases for …

python serialization pickle use-case
Python: saving objects and using pickle. extension of filename

Hello I´m trying using the next piece of code: import pickle object = Object() filehandler = open(filename, 'w') pickle.dump(…

python object save pickle file-extension
How to pickle a namedtuple instance correctly

I'm learning how to use pickle. I've created a namedtuple object, appended it to a list, and tried to pickle …

python python-2.7 pickle namedtuple
What can multiprocessing and dill do together?

I would like to use the multiprocessing library in Python. Sadly multiprocessing uses pickle which doesn't support functions with closures, …

python multiprocessing pickle dill