From 01a9d032bfa9f1a0eb3d907c6da42782a7654ec7 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 7 Jan 2019 14:02:35 +0100 Subject: [PATCH 1/2] DOC: small doc fixup of missing pd. --- doc/source/basics.rst | 2 +- doc/source/whatsnew/v0.17.0.rst | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 7c06288c01221..02cbc7e2c3b6d 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -76,7 +76,7 @@ The exact details of what an :class:`~pandas.api.extensions.ExtensionArray` is a beyond the scope of this introduction. See :ref:`basics.dtypes` for more. If you know you need a NumPy array, use :meth:`~Series.to_numpy` -or :meth:`numpy.ndarray.asarray`. +or :meth:`numpy.asarray`. .. ipython:: python diff --git a/doc/source/whatsnew/v0.17.0.rst b/doc/source/whatsnew/v0.17.0.rst index 6bde4f1b9cf99..ac18c71216766 100644 --- a/doc/source/whatsnew/v0.17.0.rst +++ b/doc/source/whatsnew/v0.17.0.rst @@ -984,9 +984,9 @@ Removal of prior version deprecations/changes .. ipython:: python np.random.seed(1234) - df = DataFrame(np.random.randn(5, 2), - columns=list('AB'), - index=date_range('20130101', periods=5)) + df = pd.DataFrame(np.random.randn(5, 2), + columns=list('AB'), + index=date_range('20130101', periods=5)) df Previously From 6c7ff01ecd3dc96daa6582d3541aed8c14f36c82 Mon Sep 17 00:00:00 2001 From: Joris Van den Bossche Date: Mon, 7 Jan 2019 14:49:12 +0100 Subject: [PATCH 2/2] fixup --- doc/source/whatsnew/v0.17.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/whatsnew/v0.17.0.rst b/doc/source/whatsnew/v0.17.0.rst index ac18c71216766..c53fee42548e9 100644 --- a/doc/source/whatsnew/v0.17.0.rst +++ b/doc/source/whatsnew/v0.17.0.rst @@ -986,7 +986,7 @@ Removal of prior version deprecations/changes np.random.seed(1234) df = pd.DataFrame(np.random.randn(5, 2), columns=list('AB'), - index=date_range('20130101', periods=5)) + index=pd.date_range('2013-01-01', periods=5)) df Previously