Detail: IndexYear: Operator Unary
Overview: IndexYear: Operator Unary
- IndexYear.__abs__()
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> abs(ix) UFuncTypeError(<ufunc 'absolute'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
- IndexYear.__invert__()
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 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''")
- IndexYear.__neg__()
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> -ix UFuncTypeError(<ufunc 'negative'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
- IndexYear.__pos__()
>>> ix = sf.IndexYear(('1517', '1520', '1518')) >>> ix <IndexYear> 1517 1520 1518 <datetime64[Y]> >>> +ix UFuncTypeError(<ufunc 'positive'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
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 | Accessor Type Clinic