Detail: Index: Operator Unary
Overview: Index: Operator Unary
- Index.__abs__()
>>> ix = sf.Index((0, 1024, -2048, 4096)) >>> ix <Index> 0 1024 -2048 4096 <int64> >>> abs(ix) [ 0 1024 2048 4096]
- Index.__invert__()
>>> ix = sf.Index((False, True), name='x') >>> ix <Index: x> False True <bool> >>> ~ix [ True False]
- Index.__neg__()
>>> ix = sf.Index((0, 1024, -2048, 4096)) >>> ix <Index> 0 1024 -2048 4096 <int64> >>> -ix [ 0 -1024 2048 -4096]
- Index.__pos__()
>>> ix = sf.Index((0, 1024, -2048, 4096)) >>> ix <Index> 0 1024 -2048 4096 <int64> >>> +ix [ 0 1024 -2048 4096]
Index: 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