Detail: SeriesHE: Accessor Fill ValueΒΆ

Overview: SeriesHE: Accessor Fill Value

SeriesHE.via_fill_value(fill_value).loc
SeriesHE.via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.loc

Label-based selection where labels not specified will define a new container containing those labels filled with the fill value.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s.via_fill_value(0).loc[['a', 'c', 'd', 'e']]
<SeriesHE>
<Index>
a          10
c          8
d          0
e          0
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__getitem__(key)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__getitem__(key)[source]

Label-based selection where labels not specified will define a new container containing those labels filled with the fill value.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s.via_fill_value(0)[['a', 'c', 'd', 'e']]
<SeriesHE>
<Index>
a          10
c          8
d          0
e          0
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).via_T
SeriesHE.via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.via_T

Interface for using binary operators with one-dimensional sequences, where the opperand is applied column-wise.

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s.via_fill_value().via_T
NotImplementedError('via_T functionality only available on Frame')
SeriesHE.via_fill_value(fill_value).__add__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__add__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) + s2
<SeriesHE>
<Index>
a          10
b          4
c          16
d          19
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__sub__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__sub__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) - s2
<SeriesHE>
<Index>
a          10
b          0
c          0
d          -19
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__mul__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__mul__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) * s2
<SeriesHE>
<Index>
a          0
b          4
c          64
d          0
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__truediv__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__truediv__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) / s2
<SeriesHE>
<Index>
a          inf
b          1.0
c          1.0
d          0.0
<<U1>      <float64>
SeriesHE.via_fill_value(fill_value).__floordiv__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__floordiv__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) // s2
<SeriesHE>
<Index>
a          0
b          1
c          1
d          0
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__mod__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__mod__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) % s2
<SeriesHE>
<Index>
a          0
b          0
c          0
d          0
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__pow__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__pow__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) ** s2
<SeriesHE>
<Index>
a          1
b          4
c          16777216
d          0
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__lshift__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__lshift__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) << s2
<SeriesHE>
<Index>
a          10
b          8
c          2048
d          0
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__rshift__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__rshift__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) >> s2
<SeriesHE>
<Index>
a          10
b          0
c          0
d          0
<<U1>      <int64>
SeriesHE.via_fill_value(fill_value).__and__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__and__(other)[source]
>>> s1 = sf.SeriesHE((False, False, True), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((False, False, True), index=('b', 'c', 'd'))
>>> s1.via_fill_value(False) & s2
<SeriesHE>
<Index>
a          False
b          False
c          False
d          False
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__xor__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__xor__(other)[source]
>>> s1 = sf.SeriesHE((False, False, True), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((False, False, True), index=('b', 'c', 'd'))
>>> s1.via_fill_value(False) ^ s2
<SeriesHE>
<Index>
a          False
b          False
c          True
d          True
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__or__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__or__(other)[source]
>>> s1 = sf.SeriesHE((False, False, True), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((False, False, True), index=('b', 'c', 'd'))
>>> s1.via_fill_value(False) | s2
<SeriesHE>
<Index>
a          False
b          False
c          True
d          True
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__lt__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__lt__(other)[source]

Return self<value.

>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) < s2
<SeriesHE>
<Index>
a          False
b          False
c          False
d          True
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__le__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__le__(other)[source]

Return self<=value.

>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) <= s2
<SeriesHE>
<Index>
a          False
b          True
c          True
d          True
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__eq__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__eq__(other)[source]

Return self==value.

>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) == s2
<SeriesHE>
<Index>
a          False
b          True
c          True
d          False
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__ne__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__ne__(other)[source]

Return self!=value.

>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) != s2
<SeriesHE>
<Index>
a          True
b          False
c          False
d          True
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__gt__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__gt__(other)[source]

Return self>value.

>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) > s2
<SeriesHE>
<Index>
a          True
b          False
c          False
d          False
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__ge__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__ge__(other)[source]

Return self>=value.

>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) >= s2
<SeriesHE>
<Index>
a          True
b          True
c          True
d          False
<<U1>      <bool>
SeriesHE.via_fill_value(fill_value).__radd__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__radd__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s2 + s1.via_fill_value(0)
RuntimeError('via_fill_value interfaces can only be used on the left-hand side of binary expressions.')
SeriesHE.via_fill_value(fill_value).__rsub__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__rsub__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s2 - s1.via_fill_value(0)
RuntimeError('via_fill_value interfaces can only be used on the left-hand side of binary expressions.')
SeriesHE.via_fill_value(fill_value).__rmul__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__rmul__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s2 * s1.via_fill_value(0)
RuntimeError('via_fill_value interfaces can only be used on the left-hand side of binary expressions.')
SeriesHE.via_fill_value(fill_value).__rtruediv__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__rtruediv__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s2 / s1.via_fill_value(0)
RuntimeError('via_fill_value interfaces can only be used on the left-hand side of binary expressions.')
SeriesHE.via_fill_value(fill_value).__rfloordiv__(other)
via_fill_value = <function Series.via_fill_value>
InterfaceFillValue.__rfloordiv__(other)[source]
>>> s1 = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.SeriesHE((2, 8, 19), index=('b', 'c', 'd'))
>>> s2 // s1.via_fill_value(0)
RuntimeError('via_fill_value interfaces can only be used on the left-hand side of binary expressions.')

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