Skip to content

Commit ebfcad1

Browse files
authored
DEPS: Filter numpy's FutureWarning from array_equal (#52010)
1 parent c98b7c8 commit ebfcad1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/dtypes/cast.py

+3
Original file line numberDiff line numberDiff line change
@@ -1611,6 +1611,9 @@ def maybe_cast_to_integer_array(arr: list | np.ndarray, dtype: np.dtype) -> np.n
16111611

16121612
with warnings.catch_warnings():
16131613
warnings.filterwarnings("ignore", category=RuntimeWarning)
1614+
warnings.filterwarnings(
1615+
"ignore", "elementwise comparison failed", FutureWarning
1616+
)
16141617
if np.array_equal(arr, casted):
16151618
return casted
16161619

0 commit comments

Comments
 (0)