Skip to content

Commit ee2d377

Browse files
authored
Simplify condition
1 parent 5a836bb commit ee2d377

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pandas/core/strings/accessor.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2149,7 +2149,6 @@ def decode(
21492149
if (
21502150
dtype is not None
21512151
and not is_string_dtype(dtype)
2152-
and not is_object_dtype(dtype)
21532152
):
21542153
raise ValueError(f"dtype must be string or object, got {dtype=}")
21552154
if dtype is None and get_option("future.infer_string"):

0 commit comments

Comments
 (0)