Skip to content

Commit 5ed7dad

Browse files
fix typing
1 parent 170931b commit 5ed7dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/internals/concat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ def get_reindexed_values(self, empty_dtype: DtypeObj, upcasted_na) -> ArrayLike:
507507
if self.block.is_bool:
508508
# External code requested filling/upcasting, bool values must
509509
# be upcasted to object to avoid being upcasted to numeric.
510-
values = self.block.astype(np.object_).values
510+
values = self.block.astype(np.dtype("object")).values
511511
else:
512512
# No dtype upcasting is done here, it will be performed during
513513
# concatenation itself.

0 commit comments

Comments
 (0)