Skip to content

Commit e08f299

Browse files
author
Chang She
committed
Accidentally removed__sub__
1 parent d21725c commit e08f299

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tseries/index.py

+2
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ class DatetimeIndex(Int64Index):
150150
__le__ = _dt_index_cmp('__le__')
151151
__ge__ = _dt_index_cmp('__ge__')
152152

153+
__sub__ = _dt_index_op('__sub__')
154+
153155
# structured array cache for datetime fields
154156
_sarr_cache = None
155157

0 commit comments

Comments
 (0)