Detail: IndexHourGO: Operator Unary

Overview: IndexHourGO: Operator Unary

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

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