Detail: IndexHierarchy: Operator Binary
Overview: IndexHierarchy: Operator Binary
- IndexHierarchy.__add__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih + 8 [[ 8 1032 40] [ 9 -2040 40] [ 9 1032 40]]
- IndexHierarchy.__and__(other)
>>> ih = sf.IndexHierarchy.from_labels(((False, True, True), (True, True, True), (False, True, False)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> False True True True True True False True False <bool> <bool> <bool> >>> ih & True [[False True True] [ True True True] [False True False]] >>> ih & (False, True, True) [[False True True] [False True True] [False True False]]
- IndexHierarchy.__eq__(other)
Return self==value.
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih == 8 [[False False False] [False False False] [False False False]]
- IndexHierarchy.__floordiv__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih // 8 [[ 0 128 4] [ 0 -256 4] [ 0 128 4]]
- IndexHierarchy.__ge__(other)
Return self>=value.
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih >= 8 [[False True True] [False False True] [False True True]]
- IndexHierarchy.__gt__(other)
Return self>value.
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih > 8 [[False True True] [False False True] [False True True]]
- IndexHierarchy.__le__(other)
Return self<=value.
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih <= 8 [[ True False False] [ True True False] [ True False False]]
- IndexHierarchy.__lt__(other)
Return self<value.
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih < 8 [[ True False False] [ True True False] [ True False False]]
- IndexHierarchy.__matmul__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih @ (3, 0, 4) [128 131 131]
- IndexHierarchy.__mod__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih % 8 [[0 0 0] [1 0 0] [1 0 0]]
- IndexHierarchy.__mul__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih * 8 [[ 0 8192 256] [ 8 -16384 256] [ 8 8192 256]]
- IndexHierarchy.__ne__(other)
Return self!=value.
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih != 8 [[ True True True] [ True True True] [ True True True]]
- IndexHierarchy.__or__(other)
Return self|value.
>>> ih = sf.IndexHierarchy.from_labels(((False, True, True), (True, True, True), (False, True, False)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> False True True True True True False True False <bool> <bool> <bool> >>> ih | True [[ True True True] [ True True True] [ True True True]] >>> ih | (False, True, True) [[False True True] [ True True True] [False True True]]
- IndexHierarchy.__pow__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih ** 8 [[ 0 0 1099511627776] [ 1 0 1099511627776] [ 1 0 1099511627776]]
- IndexHierarchy.__radd__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> 8 + ih [[ 8 1032 40] [ 9 -2040 40] [ 9 1032 40]]
- IndexHierarchy.__rfloordiv__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> 8 // ih [[ 0 0 0] [ 8 -1 0] [ 8 0 0]]
- IndexHierarchy.__rmatmul__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih @ (3, 0, 4) [128 131 131]
- IndexHierarchy.__rmul__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> 8 * ih [[ 0 8192 256] [ 8 -16384 256] [ 8 8192 256]]
- IndexHierarchy.__rshift__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih >> 1 [[ 0 512 16] [ 0 -1024 16] [ 0 512 16]]
- IndexHierarchy.__rsub__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> 8 - ih [[ 8 -1016 -24] [ 7 2056 -24] [ 7 -1016 -24]]
- IndexHierarchy.__rtruediv__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> 8 / ih [[ inf 7.81250e-03 2.50000e-01] [ 8.00000e+00 -3.90625e-03 2.50000e-01] [ 8.00000e+00 7.81250e-03 2.50000e-01]]
- IndexHierarchy.__sub__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih - 8 [[ -8 1016 24] [ -7 -2056 24] [ -7 1016 24]]
- IndexHierarchy.__truediv__(other)
>>> ih = sf.IndexHierarchy.from_labels(((0, 1024, 32), (1, -2048, 32), (1, 1024, 32)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> 0 1024 32 1 -2048 32 1 1024 32 <int64> <int64> <int64> >>> ih / 8 [[ 0.00e+00 1.28e+02 4.00e+00] [ 1.25e-01 -2.56e+02 4.00e+00] [ 1.25e-01 1.28e+02 4.00e+00]]
- IndexHierarchy.__xor__(other)
>>> ih = sf.IndexHierarchy.from_labels(((False, True, True), (True, True, True), (False, True, False)), name=('x', 'y', 'z')) >>> ih <IndexHierarchy: ('x', 'y', 'z')> False True True True True True False True False <bool> <bool> <bool> >>> ih ^ True [[ True False False] [False False False] [ True False True]] >>> ih ^ (False, True, True) [[False False False] [ True False False] [False False True]]
IndexHierarchy: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Transpose | Accessor Regular Expression | Accessor Hashlib | Accessor Type Clinic