Skip to content

Commit a73e2eb

Browse files
committed
BUG: Fix replacing in string series with NA (pandas-dev#32621)
1 parent f5b994a commit a73e2eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/internals/managers.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1943,10 +1943,10 @@ def _check_comparison_types(
19431943
):
19441944
type_names = [type(a).__name__, type(b).__name__]
19451945

1946-
if is_a_array:
1946+
if isinstance(a, np.ndarray):
19471947
type_names[0] = f"ndarray(dtype={a.dtype})"
19481948

1949-
if is_b_array:
1949+
if isinstance(b, np.ndarray):
19501950
type_names[1] = f"ndarray(dtype={b.dtype})"
19511951

19521952
raise TypeError(

0 commit comments

Comments
 (0)