Detail: IndexYearGO: Operator Unary

Overview: IndexYearGO: Operator Unary

IndexYearGO.__abs__()
>>> ix = sf.IndexYearGO(('1517', '1520', '1518'))
>>> ix
<IndexYearGO>
1517
1520
1518
<datetime64[Y]>
>>> abs(ix)
UFuncTypeError(<ufunc 'absolute'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
IndexYearGO.__invert__()
>>> ix = sf.IndexYearGO(('1517', '1520', '1518'))
>>> ix
<IndexYearGO>
1517
1520
1518
<datetime64[Y]>
>>> ~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''")
IndexYearGO.__neg__()
>>> ix = sf.IndexYearGO(('1517', '1520', '1518'))
>>> ix
<IndexYearGO>
1517
1520
1518
<datetime64[Y]>
>>> -ix
UFuncTypeError(<ufunc 'negative'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
IndexYearGO.__pos__()
>>> ix = sf.IndexYearGO(('1517', '1520', '1518'))
>>> ix
<IndexYearGO>
1517
1520
1518
<datetime64[Y]>
>>> +ix
UFuncTypeError(<ufunc 'positive'>, (<class 'numpy.dtypes.DateTime64DType'>, None))

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