From f9a4ee0cb3f3e24e072d0b5bbdd4853a89af8aa8 Mon Sep 17 00:00:00 2001 From: Matt Braymer-Hayes Date: Tue, 14 Nov 2017 12:10:23 -0800 Subject: [PATCH 1/2] DOC: Remove trailing whitespace from one line --- doc/source/io.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/io.rst b/doc/source/io.rst index 36f216601b491..ff6774c06aaf4 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4538,7 +4538,7 @@ Read from a parquet file. result.dtypes -Read only certain columns of a parquet file. +Read only certain columns of a parquet file. .. ipython:: python From f0836dade6a42860050f010988a600dcdaf1d9b7 Mon Sep 17 00:00:00 2001 From: Matt Braymer-Hayes Date: Tue, 14 Nov 2017 12:09:36 -0800 Subject: [PATCH 2/2] DOC: Remove "drop=True" from reset_index() reference in Feather and Parquet IO index caveats (#18285) --- doc/source/io.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/source/io.rst b/doc/source/io.rst index ff6774c06aaf4..c94d5bc75d4fc 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4427,8 +4427,10 @@ Several caveats. - This is a newer library, and the format, though stable, is not guaranteed to be backward compatible to the earlier versions. -- The format will NOT write an ``Index``, or ``MultiIndex`` for the ``DataFrame`` and will raise an - error if a non-default one is provided. You can simply ``.reset_index()`` in order to store the index. +- The format will NOT write an ``Index``, or ``MultiIndex`` for the + ``DataFrame`` and will raise an error if a non-default one is provided. You + can ``.reset_index()`` to store the index or ``.reset_index(drop=True)`` to + ignore it. - Duplicate column names and non-string columns names are not supported - Non supported types include ``Period`` and actual python object types. These will raise a helpful error message on an attempt at serialization. @@ -4491,8 +4493,10 @@ dtypes, including extension dtypes such as datetime with tz. Several caveats. -- The format will NOT write an ``Index``, or ``MultiIndex`` for the ``DataFrame`` and will raise an - error if a non-default one is provided. You can simply ``.reset_index(drop=True)`` in order to store the index. +- The format will NOT write an ``Index``, or ``MultiIndex`` for the + ``DataFrame`` and will raise an error if a non-default one is provided. You + can ``.reset_index()`` to store the index or ``.reset_index(drop=True)`` to + ignore it. - Duplicate column names and non-string columns names are not supported - Categorical dtypes can be serialized to parquet, but will de-serialize as ``object`` dtype. - Non supported types include ``Period`` and actual python object types. These will raise a helpful error message