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..c53fee42548e9 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=pd.date_range('2013-01-01', periods=5)) df Previously