File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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.\n This 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.\n This 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 )
You can’t perform that action at this time.
0 commit comments