Skip to content

Commit

Permalink
Simplify condition
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach authored Feb 17, 2025
1 parent 5a836bb commit ee2d377
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pandas/core/strings/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2149,7 +2149,6 @@ def decode(
if (
dtype is not None
and not is_string_dtype(dtype)
and not is_object_dtype(dtype)
):
raise ValueError(f"dtype must be string or object, got {dtype=}")
if dtype is None and get_option("future.infer_string"):
Expand Down

0 comments on commit ee2d377

Please sign in to comment.