@@ -2622,8 +2622,6 @@ cdef class _Timedelta(timedelta):
2622
2622
int ndim
2623
2623
2624
2624
if isinstance (other, _Timedelta):
2625
- if isinstance (other, _NaT):
2626
- return _cmp_nat_dt(other, self , _reverse_ops[op])
2627
2625
ots = other
2628
2626
elif isinstance (other, timedelta):
2629
2627
ots = Timedelta(other)
@@ -3882,7 +3880,7 @@ fields = ['year', 'quarter', 'month', 'day', 'hour',
3882
3880
' minute' , ' second' , ' millisecond' , ' microsecond' , ' nanosecond' ,
3883
3881
' week' , ' dayofyear' , ' weekofyear' , ' days_in_month' , ' daysinmonth' ,
3884
3882
' dayofweek' , ' weekday_name' , ' days' , ' seconds' , ' microseconds' ,
3885
- ' nanoseconds' , ' qyear' , ' quarter ' ]
3883
+ ' nanoseconds' , ' qyear' ]
3886
3884
for field in fields:
3887
3885
prop = property(fget = lambda self : np.nan)
3888
3886
setattr (NaTType, field, prop)
@@ -4620,7 +4618,6 @@ def build_field_sarray(ndarray[int64_t] dtindex):
4620
4618
"""
4621
4619
cdef:
4622
4620
Py_ssize_t i, count = 0
4623
- int isleap
4624
4621
pandas_datetimestruct dts
4625
4622
ndarray[int32_t] years, months, days, hours, minutes, seconds, mus
4626
4623
@@ -5270,7 +5267,6 @@ cpdef _isleapyear_arr(ndarray years):
5270
5267
def monthrange (int64_t year , int64_t month ):
5271
5268
cdef:
5272
5269
int64_t days
5273
- int64_t day_of_week
5274
5270
5275
5271
if month < 1 or month > 12 :
5276
5272
raise ValueError (" bad month number 0; must be 1-12" )
0 commit comments