Skip to content

Commit 9786ee3

Browse files
committed
fix codecheck errors
1 parent d466e24 commit 9786ee3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -666,11 +666,12 @@ def __array__(
666666
"""Correctly construct numpy arrays when passed to `np.asarray()`."""
667667
if copy is False:
668668
warnings.warn(
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 "
673-
"'copy=False' was passed. Consider using 'np.asarray(..)' instead.",
669+
"Starting with NumPy 2.0, the behavior of the 'copy' keyword has "
670+
"changed and passing 'copy=False' raises an error when returning "
671+
"a zero-copy NumPy array is not possible. pandas will follow "
672+
"this behavior starting with pandas 3.0.\nThis conversion to "
673+
"NumPy requires a copy, but 'copy=False' was passed. Consider "
674+
"using 'np.asarray(..)' instead.",
674675
FutureWarning,
675676
stacklevel=find_stack_level(),
676677
)

0 commit comments

Comments
 (0)