Skip to content

Commit 8011a02

Browse files
author
tp
committed
Added changes according to comments
also update link to python.org
1 parent aee6a29 commit 8011a02

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

doc/source/indexing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ Evaluation order matters
17731773

17741774
Furthermore, in chained expressions, the order may determine whether a copy is returned or not.
17751775
If an expression will set values on a copy of a slice, then a ``SettingWithCopy``
1776-
exception will be raised.
1776+
warning will be issued.
17771777

17781778
You can control the action of a chained assignment via the option ``mode.chained_assignment``,
17791779
which can take the values ``['raise','warn',None]``, where showing a warning is the default.

doc/source/io.rst

+8-8
Original file line numberDiff line numberDiff line change
@@ -3058,13 +3058,17 @@ any pickled pandas object (or any other pickled object) from file:
30583058

30593059
Loading pickled data received from untrusted sources can be unsafe.
30603060

3061-
See: http://docs.python.org/2.7/library/pickle.html
3061+
See: https://docs.python.org/3.6/library/pickle.html
30623062

30633063
.. warning::
30643064

3065-
Pickled data must
3066-
be read with ``pd.read_pickle``, rather than the default python ``pickle.load``.
3067-
See `this question <http://stackoverflow.com/questions/20444593/pandas-compiled-from-source-default-pickle-behavior-changed>`__
3065+
Several internal refactorings over time have done to pandas while preserving
3066+
compatibility with pickles created with prior versions. However, in such
3067+
cases, where there are changes to the data structures between pandas
3068+
versions, pickled data must be read with ``pd.read_pickle`` to be read
3069+
correctly, rather than the default python ``pickle.load``. It is therefore
3070+
recommended to read pickled dataframes, series etc. using
3071+
``pd.read_pickle``. See `this question <http://stackoverflow.com/questions/20444593/pandas-compiled-from-source-default-pickle-behavior-changed>`__
30683072
for a detailed explanation.
30693073

30703074
.. _io.pickle.compression:
@@ -3851,11 +3855,7 @@ create a new table!)
38513855
Iterator
38523856
++++++++
38533857

3854-
<<<<<<< HEAD
38553858
You can pass ``iterator=True`` or ``chunksize=number_in_a_chunk``
3856-
=======
3857-
Note that you can pass ``iterator=True`` or ``chunksize=number_in_a_chunk``
3858-
>>>>>>> Cleaned references to versions <0.12 in docs
38593859
to ``select`` and ``select_as_multiple`` to return an iterator on the results.
38603860
The default is 50,000 rows returned in a chunk.
38613861

0 commit comments

Comments
 (0)