Skip to content

Commit 54e6bd1

Browse files
fixup
1 parent e540bc1 commit 54e6bd1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/arrays/string_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def _logical_method(self, other, op):
400400
f"'{op_name}' operations between boolean dtype and {self.dtype} are "
401401
"deprecated and will raise in a future version. Explicitly "
402402
"cast the strings to a boolean dtype before operating instead.",
403-
FutureWarning,
403+
DeprecationWarning,
404404
stacklevel=find_stack_level(),
405405
)
406406
return op(other, self.astype(bool))

pandas/tests/strings/test_strings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ def test_series_str_decode():
781781
def test_reversed_logical_ops(any_string_dtype):
782782
# GH#60234
783783
dtype = any_string_dtype
784-
warn = None if dtype == object else FutureWarning
784+
warn = None if dtype == object else DeprecationWarning
785785
left = Series([True, False, False, True])
786786
right = Series(["", "", "b", "c"], dtype=dtype)
787787

0 commit comments

Comments
 (0)