From bdf5ac9955a15edc008509e1f54f7622fbea6df4 Mon Sep 17 00:00:00 2001 From: Saurav Chakravorty Date: Mon, 10 Dec 2018 16:17:29 +0530 Subject: [PATCH 1/2] DOC: Fixed implicit imports for whatsnew file >= version 20.0 --- doc/source/whatsnew/v0.23.1.rst | 12 ++++-------- doc/source/whatsnew/v0.23.2.rst | 5 ----- doc/source/whatsnew/v0.23.4.rst | 5 ----- doc/source/whatsnew/v0.24.0.rst | 5 ----- 4 files changed, 4 insertions(+), 23 deletions(-) diff --git a/doc/source/whatsnew/v0.23.1.rst b/doc/source/whatsnew/v0.23.1.rst index f8bfced171a7c..cc162e2fdb24f 100644 --- a/doc/source/whatsnew/v0.23.1.rst +++ b/doc/source/whatsnew/v0.23.1.rst @@ -5,11 +5,6 @@ What's New in 0.23.1 (June 12, 2018) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * # noqa F401, F403 - This is a minor bug-fix release in the 0.23.x series and includes some small regression fixes and bug fixes. We recommend that all users upgrade to this version. @@ -43,19 +38,20 @@ To summarize, here's the behavior in 0.22.0, 0.23.0, 0.23.1: .. code-block:: python # 0.22.0... Silently coerce the datetime.date - >>> Series(pd.date_range('2017', periods=2)) == datetime.date(2017, 1, 1) + >>> import datetime as datetime + >>> pd.Series(pd.date_range('2017', periods=2)) == datetime.date(2017, 1, 1) 0 True 1 False dtype: bool # 0.23.0... Do not coerce the datetime.date - >>> Series(pd.date_range('2017', periods=2)) == datetime.date(2017, 1, 1) + >>> pd.Series(pd.date_range('2017', periods=2)) == datetime.date(2017, 1, 1) 0 False 1 False dtype: bool # 0.23.1... Coerce the datetime.date with a warning - >>> Series(pd.date_range('2017', periods=2)) == datetime.date(2017, 1, 1) + >>> pd.Series(pd.date_range('2017', periods=2)) == datetime.date(2017, 1, 1) /bin/python:1: FutureWarning: Comparing Series of datetimes with 'datetime.date'. Currently, the 'datetime.date' is coerced to a datetime. In the future pandas will not coerce, and the values not compare equal to the 'datetime.date'. diff --git a/doc/source/whatsnew/v0.23.2.rst b/doc/source/whatsnew/v0.23.2.rst index 9523724827722..cae2415e3374e 100644 --- a/doc/source/whatsnew/v0.23.2.rst +++ b/doc/source/whatsnew/v0.23.2.rst @@ -5,11 +5,6 @@ What's New in 0.23.2 (July 5, 2018) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * # noqa F401, F403 - This is a minor bug-fix release in the 0.23.x series and includes some small regression fixes and bug fixes. We recommend that all users upgrade to this version. diff --git a/doc/source/whatsnew/v0.23.4.rst b/doc/source/whatsnew/v0.23.4.rst index 75fb18a648d0a..01f904e129f80 100644 --- a/doc/source/whatsnew/v0.23.4.rst +++ b/doc/source/whatsnew/v0.23.4.rst @@ -5,11 +5,6 @@ What's New in 0.23.4 (August 3, 2018) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * # noqa F401, F403 - This is a minor bug-fix release in the 0.23.x series and includes some small regression fixes and bug fixes. We recommend that all users upgrade to this version. diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 4c78fcb76f4c6..d3c5b53b19f09 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -10,11 +10,6 @@ What's New in 0.24.0 (Month XX, 2018) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * # noqa F401, F403 - These are the changes in pandas 0.24.0. See :ref:`release` for a full changelog including other versions of pandas. From a2316e07ef636af3e7067ec5cf6670db0be5edbb Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Mon, 10 Dec 2018 18:01:23 +0530 Subject: [PATCH 2/2] Update doc/source/whatsnew/v0.23.1.rst DOC: import datetime Co-Authored-By: saurav2608 --- doc/source/whatsnew/v0.23.1.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v0.23.1.rst b/doc/source/whatsnew/v0.23.1.rst index cc162e2fdb24f..f6af2990c935b 100644 --- a/doc/source/whatsnew/v0.23.1.rst +++ b/doc/source/whatsnew/v0.23.1.rst @@ -38,7 +38,7 @@ To summarize, here's the behavior in 0.22.0, 0.23.0, 0.23.1: .. code-block:: python # 0.22.0... Silently coerce the datetime.date - >>> import datetime as datetime + >>> import datetime >>> pd.Series(pd.date_range('2017', periods=2)) == datetime.date(2017, 1, 1) 0 True 1 False