Skip to content

Commit fab1f17

Browse files
Update pandas/core/arrays/arrow/array.py warning msg
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
1 parent 8574f97 commit fab1f17

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -666,10 +666,10 @@ def __array__(
666666
"""Correctly construct numpy arrays when passed to `np.asarray()`."""
667667
if copy is False:
668668
warnings.warn(
669-
"Starting on NumPy 2.0, the behavior of the 'copy' keyword has changed "
670-
"and passing 'copy=False' raises an error when a zero-copy NumPy array "
671-
"is not possible, Pandas will follow this behavior starting with "
672-
"version 3.0. This conversion to NumPy requires a copy, but "
669+
"Starting with NumPy 2.0, the behavior of the 'copy' keyword has changed "
670+
"and passing 'copy=False' raises an error when returning a zero-copy NumPy array "
671+
"is not possible. pandas will follow this behavior starting with "
672+
"pandas 3.0.\nThis conversion to NumPy requires a copy, but "
673673
"'copy=False' was passed. Consider using 'np.asarray(..)' instead.",
674674
FutureWarning,
675675
stacklevel=find_stack_level(),

0 commit comments

Comments
 (0)