Skip to content

Commit 3bda39f

Browse files
authored
DOC/CLN: Fix to_numpy docstrings (#33871)
1 parent b6434fa commit 3bda39f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ def to_numpy(self, dtype=None, copy=False, na_value=lib.no_default, **kwargs):
753753
dtype : str or numpy.dtype, optional
754754
The dtype to pass to :meth:`numpy.asarray`.
755755
copy : bool, default False
756-
Whether to ensure that the returned value is a not a view on
756+
Whether to ensure that the returned value is not a view on
757757
another array. Note that ``copy=False`` does not *ensure* that
758758
``to_numpy()`` is no-copy. Rather, ``copy=True`` ensure that
759759
a copy is made, even if not strictly necessary.

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ def to_numpy(self, dtype=None, copy: bool = False) -> np.ndarray:
13011301
dtype : str or numpy.dtype, optional
13021302
The dtype to pass to :meth:`numpy.asarray`.
13031303
copy : bool, default False
1304-
Whether to ensure that the returned value is a not a view on
1304+
Whether to ensure that the returned value is not a view on
13051305
another array. Note that ``copy=False`` does not *ensure* that
13061306
``to_numpy()`` is no-copy. Rather, ``copy=True`` ensure that
13071307
a copy is made, even if not strictly necessary.

0 commit comments

Comments
 (0)