Detail: IndexYear: Operator Unary

Overview: IndexYear: Operator Unary

IndexYear.__abs__()
>>> ix = sf.IndexYear(('1517', '1520', '1518'))
>>> abs(ix)
UFuncTypeError(<ufunc 'absolute'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
IndexYear.__invert__()
>>> ix = sf.IndexYear(('1517', '1520', '1518'))
>>> ~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''")
IndexYear.__neg__()
>>> ix = sf.IndexYear(('1517', '1520', '1518'))
>>> -ix
UFuncTypeError(<ufunc 'negative'>, (dtype('<M8[Y]'), dtype('<M8[Y]')))
IndexYear.__pos__()
>>> ix = sf.IndexYear(('1517', '1520', '1518'))
>>> +ix
['1517' '1520' '1518']

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