From 643b08945461342d3c15f851d5679068fbf1c039 Mon Sep 17 00:00:00 2001 From: Daniel Saxton Date: Wed, 29 Apr 2020 11:39:31 -0500 Subject: [PATCH] DOC/CLN: Fix to_numpy docstrings --- pandas/core/base.py | 2 +- pandas/core/frame.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/base.py b/pandas/core/base.py index ee514888c6331..7ea2ff95ea0de 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -753,7 +753,7 @@ def to_numpy(self, dtype=None, copy=False, na_value=lib.no_default, **kwargs): dtype : str or numpy.dtype, optional The dtype to pass to :meth:`numpy.asarray`. copy : bool, default False - Whether to ensure that the returned value is a not a view on + Whether to ensure that the returned value is not a view on another array. Note that ``copy=False`` does not *ensure* that ``to_numpy()`` is no-copy. Rather, ``copy=True`` ensure that a copy is made, even if not strictly necessary. diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 4b4801f4e8c58..f8cb99e2b2e75 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1301,7 +1301,7 @@ def to_numpy(self, dtype=None, copy: bool = False) -> np.ndarray: dtype : str or numpy.dtype, optional The dtype to pass to :meth:`numpy.asarray`. copy : bool, default False - Whether to ensure that the returned value is a not a view on + Whether to ensure that the returned value is not a view on another array. Note that ``copy=False`` does not *ensure* that ``to_numpy()`` is no-copy. Rather, ``copy=True`` ensure that a copy is made, even if not strictly necessary.