Detail: IndexDate: Operator Binary
Overview: IndexDate: Operator Binary
- IndexDate.__add__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix + 2 ['1517-04-03' '1517-12-03' '1517-07-02']
- IndexDate.__and__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> 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''")
- IndexDate.__eq__(other)
Return self==value.
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix == '1517-06-30' [False False True]
- IndexDate.__floordiv__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix // '1517-06-30' UFuncTypeError(<ufunc 'floor_divide'>, (dtype('<M8[D]'), dtype('<M8[D]')))
- IndexDate.__ge__(other)
Return self>=value.
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix >= '1517-06-30' [False True True]
- IndexDate.__gt__(other)
Return self>value.
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix > '1517-06-30' [False True False]
- IndexDate.__le__(other)
Return self<=value.
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix <= '1517-06-30' [ True False True]
- IndexDate.__lt__(other)
Return self<value.
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix < '1517-06-30' [ True False False]
- IndexDate.__matmul__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix @ (3, 0, 4, 0) NotImplementedError('matrix multiplication not supported')
- IndexDate.__mod__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix % '1517-06-30' UFuncTypeError(<ufunc 'remainder'>, (dtype('<M8[D]'), dtype('<M8[D]')))
- IndexDate.__mul__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix * '1517-06-30' UFuncTypeError(<ufunc 'multiply'>, (dtype('<M8[D]'), dtype('<M8[D]')))
- IndexDate.__ne__(other)
Return self!=value.
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix != '1517-06-30' [ True True False]
- IndexDate.__or__(other)
Return self|value.
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> 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''")
- IndexDate.__pow__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix ** '1517-06-30' 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''")
- IndexDate.__radd__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> '1517-06-30' + ix UFuncTypeError(<ufunc 'add'>, (dtype('<M8[D]'), dtype('<M8[D]')))
- IndexDate.__rfloordiv__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> '1517-06-30' // ix UFuncTypeError(<ufunc 'floor_divide'>, (dtype('<M8[D]'), dtype('<M8[D]')))
- IndexDate.__rmatmul__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix @ (3, 0, 4, 0) NotImplementedError('matrix multiplication not supported')
- IndexDate.__rmul__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> '1517-06-30' * ix UFuncTypeError(<ufunc 'multiply'>, (dtype('<M8[D]'), dtype('<M8[D]')))
- IndexDate.__rshift__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> 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''")
- IndexDate.__rsub__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> '1517-06-30' - ix [ 90 -154 0]
- IndexDate.__rtruediv__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> '1517-06-30' / ix UFuncTypeError(<ufunc 'divide'>, (dtype('<M8[D]'), dtype('<M8[D]')))
- IndexDate.__sub__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix - 2 ['1517-03-30' '1517-11-29' '1517-06-28']
- IndexDate.__truediv__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix / '1517-06-30' UFuncTypeError(<ufunc 'divide'>, (dtype('<M8[D]'), dtype('<M8[D]')))
- IndexDate.__xor__(other)
>>> ix = sf.IndexDate(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDate> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> 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''")
IndexDate: 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