Skip to content

Commit 4257fe8

Browse files
committed
use is_categorical_dtype(arr_value.dtype), as is_categorical_astype is not necessary
1 parent e5c1420 commit 4257fe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/internals/blocks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ def setitem(self, indexer, value):
867867
values[indexer] = value
868868

869869
elif (
870-
self.is_categorical_astype(arr_value.dtype)
870+
is_categorical_dtype(arr_value.dtype)
871871
and not is_categorical_dtype(values)
872872
and exact_match
873873
):

0 commit comments

Comments
 (0)