Skip to content

Commit f0201c8

Browse files
jbrockmendelalanbato
authored andcommitted
Tslib unused (pandas-dev#17402)
1 parent ffa771e commit f0201c8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/_libs/tslib.pyx

+1-5
Original file line numberDiff line numberDiff line change
@@ -2622,8 +2622,6 @@ cdef class _Timedelta(timedelta):
26222622
int ndim
26232623

26242624
if isinstance(other, _Timedelta):
2625-
if isinstance(other, _NaT):
2626-
return _cmp_nat_dt(other, self, _reverse_ops[op])
26272625
ots = other
26282626
elif isinstance(other, timedelta):
26292627
ots = Timedelta(other)
@@ -3882,7 +3880,7 @@ fields = ['year', 'quarter', 'month', 'day', 'hour',
38823880
'minute', 'second', 'millisecond', 'microsecond', 'nanosecond',
38833881
'week', 'dayofyear', 'weekofyear', 'days_in_month', 'daysinmonth',
38843882
'dayofweek', 'weekday_name', 'days', 'seconds', 'microseconds',
3885-
'nanoseconds', 'qyear', 'quarter']
3883+
'nanoseconds', 'qyear']
38863884
for field in fields:
38873885
prop = property(fget=lambda self: np.nan)
38883886
setattr(NaTType, field, prop)
@@ -4620,7 +4618,6 @@ def build_field_sarray(ndarray[int64_t] dtindex):
46204618
"""
46214619
cdef:
46224620
Py_ssize_t i, count = 0
4623-
int isleap
46244621
pandas_datetimestruct dts
46254622
ndarray[int32_t] years, months, days, hours, minutes, seconds, mus
46264623

@@ -5270,7 +5267,6 @@ cpdef _isleapyear_arr(ndarray years):
52705267
def monthrange(int64_t year, int64_t month):
52715268
cdef:
52725269
int64_t days
5273-
int64_t day_of_week
52745270

52755271
if month < 1 or month > 12:
52765272
raise ValueError("bad month number 0; must be 1-12")

0 commit comments

Comments
 (0)