Skip to content

Commit 99e33a6

Browse files
committed
remove unnecessary path
1 parent 98aa73d commit 99e33a6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pandas/core/internals/concat.py

-10
Original file line numberDiff line numberDiff line change
@@ -149,16 +149,6 @@ def concat_arrays(to_concat: list) -> ArrayLike:
149149
else:
150150
target_dtype = find_common_type([arr.dtype for arr in to_concat_no_proxy])
151151

152-
if target_dtype.kind in ["m", "M"]:
153-
# for datetimelike use DatetimeArray/TimedeltaArray concatenation
154-
# don't use arr.astype(target_dtype, copy=False), because that doesn't
155-
# work for DatetimeArray/TimedeltaArray (returns ndarray)
156-
to_concat = [
157-
arr.to_array(target_dtype) if isinstance(arr, NullArrayProxy) else arr
158-
for arr in to_concat
159-
]
160-
return type(to_concat_no_proxy[0])._concat_same_type(to_concat)
161-
162152
to_concat = [
163153
arr.to_array(target_dtype)
164154
if isinstance(arr, NullArrayProxy)

0 commit comments

Comments
 (0)