Top "Pickle" questions

An object serialization module for Python.

_pickle in python3 doesn't work for large data saving

I am trying to apply _pickle to save data onto disk. But when calling _pickle.dump, I got an error …

python pickle
Trying to write a cPickle object but get a 'write' attribute type error

When trying to apply some code I found on the internet in iPython, it's coming up with an error: TypeError …

python pickle
Python 3 - Can pickle handle byte objects larger than 4GB?

Based on this comment and the referenced documentation, Pickle 4.0+ from Python 3.4+ should be able to pickle byte objects larger than 4 …

python python-3.x size pickle
How to put my dataset in a .pkl file in the exact format and data structure used in "mnist.pkl.gz"?

I'm trying to use the Theano library in python to do some experiments with Deep Belief Networks. I use the …

python theano pickle mnist dbn
Preferred (or most common) file extension for a Python pickle

At times, I've seen .pickle, .pck, .pcl, and .db for files that contain Python pickles, but I am unsure what …

python rest filenames mime-types pickle
Can I pickle a python dictionary into a sqlite3 text field?

Any gotchas I should be aware of? Can I store it in a text field, or do I need to …

python sqlite pickle
How to close the file after pickle.load() in python

I saved a python dictionary in this way: import cPickle as pickle pickle.dump(dictname, open("filename.pkl", "wb")) And …

python pickle data-dictionary
Save and reuse TfidfVectorizer in scikit learn

I am using TfidfVectorizer in scikit learn to create a matrix from text data. Now I need to save this …

python nlp scikit-learn pickle text-mining
Decreasing the size of cPickle objects

I am running code that creates large objects, containing multiple user-defined classes, which I must then serialize for later use. …

python serialization pickle
Python -- read_pickle ImportError: No module named indexes.base

I write a numeric dataframe to .pkl file in a machine (df.to_pickle()), for some reason, I have to …

python pickle importerror