From ee2d377dba883564e2d30a611b5893b663b0a3d2 Mon Sep 17 00:00:00 2001 From: Richard Shadrach <45562402+rhshadrach@users.noreply.github.com> Date: Mon, 17 Feb 2025 16:18:09 -0500 Subject: [PATCH] Simplify condition --- pandas/core/strings/accessor.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 6fb7207f45ea8..449a492557fa2 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -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"):