Detail: IndexSecondGO: Operator Unary

Overview: IndexSecondGO: Operator Unary

IndexSecondGO.__abs__()
>>> ix = sf.IndexSecondGO(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexSecondGO>
1517-04-01T00:00:00
1517-12-31T00:00:00
1517-06-30T00:00:00
<datetime64[s]>
>>> abs(ix)
UFuncTypeError(<ufunc 'absolute'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
IndexSecondGO.__invert__()
>>> ix = sf.IndexSecondGO(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexSecondGO>
1517-04-01T00:00:00
1517-12-31T00:00:00
1517-06-30T00:00:00
<datetime64[s]>
>>> ~ix
TypeError("ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''")
IndexSecondGO.__neg__()
>>> ix = sf.IndexSecondGO(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexSecondGO>
1517-04-01T00:00:00
1517-12-31T00:00:00
1517-06-30T00:00:00
<datetime64[s]>
>>> -ix
UFuncTypeError(<ufunc 'negative'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
IndexSecondGO.__pos__()
>>> ix = sf.IndexSecondGO(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexSecondGO>
1517-04-01T00:00:00
1517-12-31T00:00:00
1517-06-30T00:00:00
<datetime64[s]>
>>> +ix
UFuncTypeError(<ufunc 'positive'>, (<class 'numpy.dtypes.DateTime64DType'>, None))

IndexSecondGO: 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