Detail: SeriesHE: Operator Binary

Overview: SeriesHE: Operator Binary

SeriesHE.__add__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s + 8
<SeriesHE>
<Index>
a          18
b          10
c          16
<<U1>      <int64>
>>> s + s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          nan
b          4.0
c          16.0
<<U1>      <float64>
SeriesHE.__and__(other)
>>> s = sf.SeriesHE((False, False, True), index=('a', 'b', 'c'))
>>> s & True
<SeriesHE>
<Index>
a          False
b          False
c          True
<<U1>      <bool>
>>> s & (True, False, True)
<SeriesHE>
<Index>
a          False
b          False
c          True
<<U1>      <bool>
SeriesHE.__eq__(other)[source]

Return True if other is a Series with the same labels, values, and name. Container class and underlying dtypes are not independently compared.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s == 8
False
>>> s == s.reindex(('c', 'b'))
False
SeriesHE.__floordiv__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s // 8
<SeriesHE>
<Index>
a          1
b          0
c          1
<<U1>      <int64>
>>> s // s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          nan
b          1.0
c          1.0
<<U1>      <float64>
SeriesHE.__ge__(other)

Return self>=value.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s >= 8
<SeriesHE>
<Index>
a          True
b          False
c          True
<<U1>      <bool>
>>> s >= s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          False
b          True
c          True
<<U1>      <bool>
SeriesHE.__gt__(other)

Return self>value.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s > 8
<SeriesHE>
<Index>
a          True
b          False
c          False
<<U1>      <bool>
>>> s > s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          False
b          False
c          False
<<U1>      <bool>
SeriesHE.__le__(other)

Return self<=value.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s <= 8
<SeriesHE>
<Index>
a          False
b          True
c          True
<<U1>      <bool>
>>> s <= s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          False
b          True
c          True
<<U1>      <bool>
SeriesHE.__lt__(other)

Return self<value.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s < 8
<SeriesHE>
<Index>
a          False
b          True
c          False
<<U1>      <bool>
>>> s < s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          False
b          False
c          False
<<U1>      <bool>
SeriesHE.__matmul__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s @ (3, 0, 4)
62
SeriesHE.__mod__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s % 8
<SeriesHE>
<Index>
a          2
b          2
c          0
<<U1>      <int64>
>>> s % s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          nan
b          0.0
c          0.0
<<U1>      <float64>
SeriesHE.__mul__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s * 8
<SeriesHE>
<Index>
a          80
b          16
c          64
<<U1>      <int64>
>>> s * s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          nan
b          4.0
c          64.0
<<U1>      <float64>
SeriesHE.__ne__(other)[source]

Return False if other is a Series with the same labels, values, and name. Container class and underlying dtypes are not independently compared.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s != 8
True
>>> s != s.reindex(('c', 'b'))
True
SeriesHE.__or__(other)
>>> s = sf.SeriesHE((False, False, True), index=('a', 'b', 'c'))
>>> s | True
<SeriesHE>
<Index>
a          True
b          True
c          True
<<U1>      <bool>
>>> s | (True, False, True)
<SeriesHE>
<Index>
a          True
b          False
c          True
<<U1>      <bool>
SeriesHE.__pow__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s ** 8
<SeriesHE>
<Index>
a          100000000
b          256
c          16777216
<<U1>      <int64>
>>> s ** s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          nan
b          4.0
c          16777216.0
<<U1>      <float64>
SeriesHE.__radd__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> 8 + s
<SeriesHE>
<Index>
a          18
b          10
c          16
<<U1>      <int64>
SeriesHE.__rfloordiv__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> 8 // s
<SeriesHE>
<Index>
a          0
b          4
c          1
<<U1>      <int64>
SeriesHE.__rmatmul__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s @ (3, 0, 4)
62
SeriesHE.__rmul__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> 8 * s
<SeriesHE>
<Index>
a          80
b          16
c          64
<<U1>      <int64>
SeriesHE.__rshift__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s >> 1
<SeriesHE>
<Index>
a          5
b          1
c          4
<<U1>      <int64>
SeriesHE.__rsub__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> 8 - s
<SeriesHE>
<Index>
a          -2
b          6
c          0
<<U1>      <int64>
SeriesHE.__rtruediv__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> 8 / s
<SeriesHE>
<Index>
a          0.8
b          4.0
c          1.0
<<U1>      <float64>
SeriesHE.__sub__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s - 8
<SeriesHE>
<Index>
a          2
b          -6
c          0
<<U1>      <int64>
>>> s - s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          nan
b          0.0
c          0.0
<<U1>      <float64>
SeriesHE.__truediv__(other)
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s / 8
<SeriesHE>
<Index>
a          1.25
b          0.25
c          1.0
<<U1>      <float64>
>>> s / s.reindex(('c', 'b'))
<SeriesHE>
<Index>
a          nan
b          1.0
c          1.0
<<U1>      <float64>
SeriesHE.__xor__(other)
>>> s = sf.SeriesHE((False, False, True), index=('a', 'b', 'c'))
>>> s ^ True
<SeriesHE>
<Index>
a          True
b          True
c          False
<<U1>      <bool>
>>> s ^ (True, False, True)
<SeriesHE>
<Index>
a          True
b          False
c          False
<<U1>      <bool>

SeriesHE: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Assignment | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Fill Value | Accessor Regular Expression | Accessor Hashlib