Skip to content

Commit 9ac008c

Browse files
committed
Merge pull request #5667 from jreback/docs
DOC: add pickle compat warning to docs
2 parents 98e48ca + a47bb58 commit 9ac008c

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

doc/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
'wiki ')}
249249

250250
# remove the docstring of the flags attribute (inherited from numpy ndarray)
251-
# because these give doc build errors (see GH issue 5331)
251+
# because these give doc build errors (see GH issue 5331)
252252
def remove_flags_docstring(app, what, name, obj, options, lines):
253253
if what == "attribute" and name.endswith(".flags"):
254254
del lines[:]

doc/source/io.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -1967,9 +1967,16 @@ any pickled pandas object (or any other pickled object) from file:
19671967

19681968
See: http://docs.python.org/2.7/library/pickle.html
19691969

1970+
.. warning::
1971+
1972+
In 0.13, pickle preserves compatibility with pickles created prior to 0.13. These must
1973+
be read with ``pd.read_pickle``, rather than the default python ``pickle.load``.
1974+
See `this question <http://stackoverflow.com/questions/20444593/pandas-compiled-from-source-default-pickle-behavior-changed>`__
1975+
for a detailed explanation.
1976+
19701977
.. note::
19711978

1972-
These methods were previously ``save`` and ``load``, prior to 0.12.0, and are now deprecated.
1979+
These methods were previously ``pd.save`` and ``pd.load``, prior to 0.12.0, and are now deprecated.
19731980

19741981
.. _io.msgpack:
19751982

doc/source/v0.13.0.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _whatsnew_0130:
22

3-
v0.13.0 (October ??, 2013)
4-
--------------------------
3+
v0.13.0 (December ??, 2013)
4+
---------------------------
55

66
This is a major release from 0.12.0 and includes a number of API changes, several new features and
77
enhancements along with a large number of bug fixes.
@@ -817,6 +817,7 @@ Experimental
817817
As of 10/10/13, there is a bug in Google's API preventing result sets
818818
from being larger than 100,000 rows. A patch is scheduled for the week of
819819
10/14/13.
820+
820821
.. _whatsnew_0130.refactoring:
821822

822823
Internal Refactoring
@@ -860,6 +861,8 @@ to unify methods and behaviors. Series formerly subclassed directly from
860861

861862
- ``Series(0.5)`` would previously return the scalar ``0.5``, instead this will return a 1-element ``Series``
862863

864+
- Pickle compatibility is preserved for pickles created prior to 0.13. These must be unpickled with ``pd.read_pickle``, see :ref:`Pickling<io.pickle>`.
865+
863866
- Refactor of series.py/frame.py/panel.py to move common code to generic.py
864867

865868
- added ``_setup_axes`` to created generic NDFrame structures

0 commit comments

Comments
 (0)