Skip to content

Commit d80afa0

Browse files
committed
BUG: Fix concat series loss of timezone
1 parent b7294dd commit d80afa0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/dtypes/concat.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,8 @@ def _concat_categorical(to_concat, axis=0):
193193

194194
def _concat_asobject(to_concat):
195195
to_concat = [x.get_values() if is_categorical_dtype(x.dtype)
196-
else np.asarray(x).ravel() for x in to_concat]
196+
else np.asarray(x).ravel() if not is_datetimetz(x)
197+
else np.asarray(x.astype(object)) for x in to_concat]
197198
res = _concat_compat(to_concat)
198199
if axis == 1:
199200
return res.reshape(1, len(res))

0 commit comments

Comments
 (0)