Skip to content

Commit

Permalink
use is_categorical_dtype(arr_value.dtype), as is_categorical_astype i…
Browse files Browse the repository at this point in the history
…s not necessary
  • Loading branch information
keechongtan committed Dec 2, 2019
1 parent e5c1420 commit 4257fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/internals/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ def setitem(self, indexer, value):
values[indexer] = value

elif (
self.is_categorical_astype(arr_value.dtype)
is_categorical_dtype(arr_value.dtype)
and not is_categorical_dtype(values)
and exact_match
):
Expand Down

0 comments on commit 4257fe8

Please sign in to comment.