-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
Closed
Labels
Milestone
Description
>>> dr = pd.date_range('2016-01-01', periods=6) >>> dz = dr.tz_localize('US/Pacific') >>> dr < dz array([ True, True, True, True, True, True], dtype=bool) >>> dr[0] < dz[0] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "pandas/_libs/tslib.pyx", line 1169, in pandas._libs.tslib._Timestamp.__richcmp__ File "pandas/_libs/tslib.pyx", line 1230, in pandas._libs.tslib._Timestamp._assert_tzawareness_compat TypeError: Cannot compare tz-naive and tz-aware timestamps The vectorized comparison should raise too right?