Detail: IndexYear: Operator Binary
Overview: IndexYear: Operator Binary
- IndexYear.__add__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix + 2 ['1519' '1522' '1520']
- IndexYear.__and__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix & True TypeError("ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''") >>> ix & (False, True) TypeError("ufunc 'bitwise_and' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''")
- IndexYear.__eq__(other)
Return self==value.
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix == '1518' [False False True]
- IndexYear.__floordiv__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix // '1518' UFuncTypeError(<ufunc 'floor_divide'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
- IndexYear.__ge__(other)
Return self>=value.
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix >= '1518' [False True True]
- IndexYear.__gt__(other)
Return self>value.
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix > '1518' [False True False]
- IndexYear.__le__(other)
Return self<=value.
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix <= '1518' [ True False True]
- IndexYear.__lt__(other)
Return self<value.
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix < '1518' [ True False False]
- IndexYear.__matmul__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix @ (3, 0, 4, 0) NotImplementedError('matrix multiplication not supported')
- IndexYear.__mod__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix % '1518' UFuncTypeError(<ufunc 'remainder'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
- IndexYear.__mul__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix * '1518' UFuncTypeError(<ufunc 'multiply'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
- IndexYear.__ne__(other)
Return self!=value.
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix != '1518' [ True True False]
- IndexYear.__or__(other)
Return self|value.
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix | True TypeError("ufunc 'bitwise_or' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''") >>> ix | (False, True) TypeError("ufunc 'bitwise_or' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''")
- IndexYear.__pow__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix ** '1518' TypeError("ufunc 'power' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''")
- IndexYear.__radd__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> '1518' + ix UFuncTypeError(<ufunc 'add'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
- IndexYear.__rfloordiv__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> '1518' // ix UFuncTypeError(<ufunc 'floor_divide'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
- IndexYear.__rmatmul__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix @ (3, 0, 4, 0) NotImplementedError('matrix multiplication not supported')
- IndexYear.__rmul__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> '1518' * ix UFuncTypeError(<ufunc 'multiply'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
- IndexYear.__rshift__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix >> 1 TypeError("ufunc 'right_shift' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''")
- IndexYear.__rsub__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> '1518' - ix [ 1 -2 0]
- IndexYear.__rtruediv__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> '1518' / ix UFuncTypeError(<ufunc 'divide'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
- IndexYear.__sub__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix - 2 ['1515' '1518' '1516']
- IndexYear.__truediv__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix / '1518' UFuncTypeError(<ufunc 'divide'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
- IndexYear.__xor__(other)
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> ix ^ True TypeError("ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''") >>> ix ^ (False, True) TypeError("ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''")
IndexYear: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Regular Expression | Accessor Hashlib | Accessor Type Clinic