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