Category "pickle"

Can Python pickle lambda functions?

I have read in a number of threads that Python pickle/cPickle cannot pickle lambda functions. However the following code works, using Python 2.7.6: import cPic

How to persist patsy DesignInfo?

I'm working on an application that is a "predictive-model-as-a-service", structured as follows: train a model offline periodically upload model parameters to a

_pickle.UnpicklingError: could not find MARK

I got exceptions like UnicodeDecodeError raised when pickling (a list of) objects of EventFrame with a member participants that was an empty set. class EventFr

Can't pickle static method when using multiprocessing

I'm applying some parallelization to my code, in which I use classes. I knew that is not possible to pickle a class method without any other approach different

Pickle encoding utf-8 issue

I'm trying to pickle a pandas dataframe to my local directory so I can work on it in another jupyter notebook. The write appears to go successful at first but w