Skip to content

Commit 0b16a3a

Browse files
committed
ENH: do not convert mixed-integer type indexes to datetimeindex
1 parent b204e14 commit 0b16a3a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tseries/index.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -910,7 +910,8 @@ def join(self, other, how='left', level=None, return_indexers=False):
910910
"""
911911
See Index.join
912912
"""
913-
if not isinstance(other, DatetimeIndex) and len(other) > 0:
913+
if (not isinstance(other, DatetimeIndex) and len(other) > 0 and
914+
other.inferred_type != 'mixed-integer'):
914915
try:
915916
other = DatetimeIndex(other)
916917
except TypeError:

0 commit comments

Comments
 (0)