Skip to content

Commit 727dfe9

Browse files
committed
BUG: concat of same-tz needs string comparison for uniqueness
1 parent 1560136 commit 727dfe9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ci/requirements-3.4.run

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pytz
1+
pytz=2015.7
22
numpy=1.8.1
33
openpyxl
44
xlsxwriter

pandas/types/concat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def convert_to_pydatetime(x, axis):
249249
# thus no need to care
250250

251251
# we require ALL of the same tz for datetimetz
252-
tzs = set([x.tz for x in to_concat])
252+
tzs = set([str(x.tz) for x in to_concat])
253253
if len(tzs) == 1:
254254
from pandas.tseries.index import DatetimeIndex
255255
new_values = np.concatenate([x.tz_localize(None).asi8

0 commit comments

Comments
 (0)