Detail: IndexNanosecondGO: Operator Binary

Overview: IndexNanosecondGO: Operator Binary

IndexNanosecondGO.__add__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix + 2
['1789-05-05T00:00:00.000000002' '1789-12-31T00:00:00.000000002'
 '1799-11-09T00:00:00.000000002']
IndexNanosecondGO.__and__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> 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''")
IndexNanosecondGO.__eq__(other)

Return self==value.

>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix == '1789-05-05'
[ True False False]
IndexNanosecondGO.__floordiv__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix // '1789-05-05'
UFuncTypeError(<ufunc 'floor_divide'>, (dtype('<M8[D]'), dtype('<M8[D]')))
IndexNanosecondGO.__ge__(other)

Return self>=value.

>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix >= '1789-05-05'
[ True  True  True]
IndexNanosecondGO.__gt__(other)

Return self>value.

>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix > '1789-05-05'
[False  True  True]
IndexNanosecondGO.__le__(other)

Return self<=value.

>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix <= '1789-05-05'
[ True False False]
IndexNanosecondGO.__lt__(other)

Return self<value.

>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix < '1789-05-05'
[False False False]
IndexNanosecondGO.__matmul__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix @ (3, 0, 4, 0)
NotImplementedError('matrix multiplication not supported')
IndexNanosecondGO.__mod__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix % '1789-05-05'
UFuncTypeError(<ufunc 'remainder'>, (dtype('<M8[D]'), dtype('<M8[D]')))
IndexNanosecondGO.__mul__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix * '1789-05-05'
UFuncTypeError(<ufunc 'multiply'>, (dtype('<M8[D]'), dtype('<M8[D]')))
IndexNanosecondGO.__ne__(other)

Return self!=value.

>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix != '1789-05-05'
[False  True  True]
IndexNanosecondGO.__or__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> 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''")
IndexNanosecondGO.__pow__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix ** '1789-05-05'
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''")
IndexNanosecondGO.__radd__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> '1789-05-05' + ix
UFuncTypeError(<ufunc 'add'>, (dtype('<M8[D]'), dtype('<M8[D]')))
IndexNanosecondGO.__rfloordiv__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> '1789-05-05' // ix
UFuncTypeError(<ufunc 'floor_divide'>, (dtype('<M8[D]'), dtype('<M8[D]')))
IndexNanosecondGO.__rmatmul__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix @ (3, 0, 4, 0)
NotImplementedError('matrix multiplication not supported')
IndexNanosecondGO.__rmul__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> '1789-05-05' * ix
UFuncTypeError(<ufunc 'multiply'>, (dtype('<M8[D]'), dtype('<M8[D]')))
IndexNanosecondGO.__rshift__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> 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''")
IndexNanosecondGO.__rsub__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> '1789-05-05' - ix
[    0  -240 -3840]
IndexNanosecondGO.__rtruediv__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> '1789-05-05' / ix
UFuncTypeError(<ufunc 'true_divide'>, (dtype('<M8[D]'), dtype('<M8[D]')))
IndexNanosecondGO.__sub__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix - 2
['1789-05-04T23:59:59.999999998' '1789-12-30T23:59:59.999999998'
 '1799-11-08T23:59:59.999999998']
IndexNanosecondGO.__truediv__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix / '1789-05-05'
UFuncTypeError(<ufunc 'true_divide'>, (dtype('<M8[D]'), dtype('<M8[D]')))
IndexNanosecondGO.__xor__(other)
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> 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''")

IndexNanosecondGO: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Regular Expression | Accessor Hashlib