def _is_convertible_to_index(other):
 if isinstance(other, TimedeltaIndex):
  return True
 elif ((len(other) > 0) and (other.inferred_type not in ('floating', 'mixed-integer', 'integer', 'mixed-integer-float', 'mixed'))):
  return True
 return False

def _is_convertible_to_index ( other ) : if isinstance ( other , TimedeltaIndex ) : return True elif ( ( len ( other ) > 0 ) and ( other . inferred_type not in ( 'floating' , 'mixed-integer' , 'integer' , 'mixed-integer-float' , 'mixed' ) ) ) : return True return False
return a boolean whether i can attempt conversion to a timedeltaindex .