From eec9062d435029729d69228e8d3929f695c6dbae Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 28 Jun 2018 06:03:50 -0500 Subject: [PATCH 1/4] DOC: Fixup docstring [ci skip] [ci skip] --- pandas/core/series.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/series.py b/pandas/core/series.py index cdb901d18767c..f5aea19ee4a7b 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -1439,7 +1439,7 @@ def mode(self, dropna=True): Always returns Series even if only one value is returned. Parameters - ------- + ---------- dropna : boolean, default True Don't consider counts of NaN/NaT. From 6776cd9975c4f9183f2cfd6bf63c5b3cf5b60886 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 28 Jun 2018 06:45:13 -0500 Subject: [PATCH 2/4] Fix warning [ci skip] [ci skip] --- doc/source/whatsnew/v0.24.0.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 1105acda067d3..ef19e5984fa3d 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -176,7 +176,7 @@ Timezones ^^^^^^^^^ - Bug in :meth:`DatetimeIndex.shift` where an ``AssertionError`` would raise when shifting across DST (:issue:`8616`) -- Bug in :class:`Timestamp` constructor where passing an invalid timezone offset designator (``Z``) would not raise a ``ValueError``(:issue:`8910`) +- Bug in :class:`Timestamp` constructor where passing an invalid timezone offset designator (``Z``) would not raise a ``ValueError`` (:issue:`8910`) - Bug in :meth:`Timestamp.replace` where replacing at a DST boundary would retain an incorrect offset (:issue:`7825`) - Bug in :meth:`Series.replace` with ``datetime64[ns, tz]`` data when replacing ``NaT`` (:issue:`11792`) - Bug in :class:`Timestamp` when passing different string date formats with a timezone offset would produce different timezone offsets (:issue:`12064`) From 8e31e35a4c7a96b61b993c9b0a7c69717c2bbd47 Mon Sep 17 00:00:00 2001 From: Tom Augspurger Date: Thu, 28 Jun 2018 11:13:02 -0500 Subject: [PATCH 3/4] Fix additional warnings --- doc/source/merging.rst | 2 +- doc/source/whatsnew/v0.14.1.txt | 12 ++++++------ doc/source/whatsnew/v0.17.1.txt | 2 +- doc/source/whatsnew/v0.8.0.txt | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/source/merging.rst b/doc/source/merging.rst index 2eb5962ead986..eb71722dd563a 100644 --- a/doc/source/merging.rst +++ b/doc/source/merging.rst @@ -494,7 +494,7 @@ You can also pass a list of dicts or Series: dicts = [{'A': 1, 'B': 2, 'C': 3, 'X': 4}, {'A': 5, 'B': 6, 'C': 7, 'Y': 8}] - result = df1.append(dicts, ignore_index=True) + result = df1.append(dicts, ignore_index=True, sort=False) .. ipython:: python :suppress: diff --git a/doc/source/whatsnew/v0.14.1.txt b/doc/source/whatsnew/v0.14.1.txt index 5183dd24e9b34..d019cf54086c6 100644 --- a/doc/source/whatsnew/v0.14.1.txt +++ b/doc/source/whatsnew/v0.14.1.txt @@ -92,15 +92,15 @@ Enhancements ``offsets.apply``, ``rollforward`` and ``rollback`` resets the time (hour, minute, etc) or not (default ``False``, preserves time) (:issue:`7156`): - .. ipython:: python + .. code-block:: python - import pandas.tseries.offsets as offsets + import pandas.tseries.offsets as offsets - day = offsets.Day() - day.apply(Timestamp('2014-01-01 09:00')) + day = offsets.Day() + day.apply(Timestamp('2014-01-01 09:00')) - day = offsets.Day(normalize=True) - day.apply(Timestamp('2014-01-01 09:00')) + day = offsets.Day(normalize=True) + day.apply(Timestamp('2014-01-01 09:00')) - ``PeriodIndex`` is represented as the same format as ``DatetimeIndex`` (:issue:`7601`) - ``StringMethods`` now work on empty Series (:issue:`7242`) diff --git a/doc/source/whatsnew/v0.17.1.txt b/doc/source/whatsnew/v0.17.1.txt index c5ae0d147824c..328a8193c8b13 100644 --- a/doc/source/whatsnew/v0.17.1.txt +++ b/doc/source/whatsnew/v0.17.1.txt @@ -58,7 +58,7 @@ We can render the HTML to get the following table. :file: whatsnew_0171_html_table.html :class:`~pandas.core.style.Styler` interacts nicely with the Jupyter Notebook. -See the :doc:`documentation