We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98aa73d commit 99e33a6Copy full SHA for 99e33a6
pandas/core/internals/concat.py
@@ -149,16 +149,6 @@ def concat_arrays(to_concat: list) -> ArrayLike:
149
else:
150
target_dtype = find_common_type([arr.dtype for arr in to_concat_no_proxy])
151
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
-
162
to_concat = [
163
arr.to_array(target_dtype)
164
if isinstance(arr, NullArrayProxy)
0 commit comments