Skip to content

Commit 951c9c1

Browse files
authored
BUG: JoinUnit.is_na wrong for CategoricalDtype (#37196)
1 parent f23f8ac commit 951c9c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/internals/concat.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,7 @@ def is_na(self) -> bool:
217217
# a block is NOT null, chunks should help in such cases. 1000 value
218218
# was chosen rather arbitrarily.
219219
values = self.block.values
220-
if self.block.is_categorical:
221-
values_flat = values.categories
222-
elif is_sparse(self.block.values.dtype):
220+
if is_sparse(self.block.values.dtype):
223221
return False
224222
elif self.block.is_extension:
225223
# TODO(EA2D): no need for special case with 2D EAs

0 commit comments

Comments
 (0)