Detail: IndexMillisecondGO: Operator Unary

Overview: IndexMillisecondGO: Operator Unary

IndexMillisecondGO.__abs__()
>>> ix = sf.IndexMillisecondGO(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMillisecondGO>
1517-04-01T00:00:00.000
1517-12-31T00:00:00.000
1517-06-30T00:00:00.000
<datetime64[ms]>
>>> abs(ix)
UFuncTypeError(<ufunc 'absolute'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
IndexMillisecondGO.__invert__()
>>> ix = sf.IndexMillisecondGO(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMillisecondGO>
1517-04-01T00:00:00.000
1517-12-31T00:00:00.000
1517-06-30T00:00:00.000
<datetime64[ms]>
>>> ~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''")
IndexMillisecondGO.__neg__()
>>> ix = sf.IndexMillisecondGO(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMillisecondGO>
1517-04-01T00:00:00.000
1517-12-31T00:00:00.000
1517-06-30T00:00:00.000
<datetime64[ms]>
>>> -ix
UFuncTypeError(<ufunc 'negative'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
IndexMillisecondGO.__pos__()
>>> ix = sf.IndexMillisecondGO(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> ix
<IndexMillisecondGO>
1517-04-01T00:00:00.000
1517-12-31T00:00:00.000
1517-06-30T00:00:00.000
<datetime64[ms]>
>>> +ix
UFuncTypeError(<ufunc 'positive'>, (<class 'numpy.dtypes.DateTime64DType'>, None))

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