Skip to content

Commit ce83e09

Browse files
committed
replace warning msg on tests/extension/json/array.py
1 parent f419a91 commit ce83e09

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/tests/extension/json/array.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,12 @@ def __ne__(self, other):
152152
def __array__(self, dtype=None, copy=None):
153153
if copy is False:
154154
warnings.warn(
155-
"Starting on NumPy 2.0, the behavior of the 'copy' keyword has changed "
156-
"and passing 'copy=False' raises an error when a zero-copy NumPy array "
157-
"is not possible, Pandas will follow this behavior starting with "
158-
"version 3.0. This conversion to NumPy requires a copy, but "
159-
"'copy=False' was passed. Consider using 'np.asarray(..)' instead.",
155+
"Starting with NumPy 2.0, the behavior of the 'copy' keyword has "
156+
"changed and passing 'copy=False' raises an error when returning "
157+
"a zero-copy NumPy array is not possible. pandas will follow "
158+
"this behavior starting with pandas 3.0.\nThis conversion to "
159+
"NumPy requires a copy, but 'copy=False' was passed. Consider "
160+
"using 'np.asarray(..)' instead.",
160161
FutureWarning,
161162
stacklevel=find_stack_level(),
162163
)

0 commit comments

Comments
 (0)