Detail: IndexYearMonth: Operator Unary
Overview: IndexYearMonth: Operator Unary
- IndexYearMonth.__abs__()
>>> ix = sf.IndexYearMonth(('1517-04', '1517-12', '1517-06')) >>> ix <IndexYearMonth> 1517-04 1517-12 1517-06 <datetime64[M]> >>> abs(ix) UFuncTypeError(<ufunc 'absolute'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
- IndexYearMonth.__invert__()
>>> ix = sf.IndexYearMonth(('1517-04', '1517-12', '1517-06')) >>> ix <IndexYearMonth> 1517-04 1517-12 1517-06 <datetime64[M]> >>> ~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''")
- IndexYearMonth.__neg__()
>>> ix = sf.IndexYearMonth(('1517-04', '1517-12', '1517-06')) >>> ix <IndexYearMonth> 1517-04 1517-12 1517-06 <datetime64[M]> >>> -ix UFuncTypeError(<ufunc 'negative'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
- IndexYearMonth.__pos__()
>>> ix = sf.IndexYearMonth(('1517-04', '1517-12', '1517-06')) >>> ix <IndexYearMonth> 1517-04 1517-12 1517-06 <datetime64[M]> >>> +ix UFuncTypeError(<ufunc 'positive'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
IndexYearMonth: 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