Skip to content

Commit 4af752e

Browse files
jorisvandenbosschePingviinituutti
authored andcommitted
DOC: Small doc fixups of missing pd. and numpy method (pandas-dev#24659)
1 parent 13b9237 commit 4af752e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/source/basics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ The exact details of what an :class:`~pandas.api.extensions.ExtensionArray` is a
7676
beyond the scope of this introduction. See :ref:`basics.dtypes` for more.
7777

7878
If you know you need a NumPy array, use :meth:`~Series.to_numpy`
79-
or :meth:`numpy.ndarray.asarray`.
79+
or :meth:`numpy.asarray`.
8080

8181
.. ipython:: python
8282

doc/source/whatsnew/v0.17.0.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,9 @@ Removal of prior version deprecations/changes
984984
.. ipython:: python
985985
986986
np.random.seed(1234)
987-
df = DataFrame(np.random.randn(5, 2),
988-
columns=list('AB'),
989-
index=date_range('20130101', periods=5))
987+
df = pd.DataFrame(np.random.randn(5, 2),
988+
columns=list('AB'),
989+
index=pd.date_range('2013-01-01', periods=5))
990990
df
991991
992992
Previously

0 commit comments

Comments
 (0)