Detail: IndexNanosecond: Operator Unary
Overview: IndexNanosecond: Operator Unary
- IndexNanosecond.__abs__()
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecond> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> abs(ix) UFuncTypeError(<ufunc 'absolute'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
- IndexNanosecond.__invert__()
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecond> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> ~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''")
- IndexNanosecond.__neg__()
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecond> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> -ix UFuncTypeError(<ufunc 'negative'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
- IndexNanosecond.__pos__()
>>> ix = sf.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecond> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> +ix UFuncTypeError(<ufunc 'positive'>, (<class 'numpy.dtypes.DateTime64DType'>, None))
IndexNanosecond: 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