Detail: Series: Accessor Fill Value

Overview: Series: Accessor Fill Value

Series.via_fill_value(fill_value).loc
Series.via_fill_value = <function Series.via_fill_value>[source]
InterfaceFillValue.loc

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

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

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

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

Return self|value.

>>> s1 = sf.Series((False, False, True), index=('a', 'b', 'c'))
>>> s1
<Series>
<Index>
a        False
b        False
c        True
<<U1>    <bool>
>>> s2 = sf.Series((False, False, True), index=('b', 'c', 'd'))
>>> s2
<Series>
<Index>
b        False
c        False
d        True
<<U1>    <bool>
>>> s1.via_fill_value(False) | s2
<Series>
<Index>
a        False
b        False
c        True
d        True
<<U1>    <bool>
Series.via_fill_value(fill_value).__lt__(other)
via_fill_value = <function Series.via_fill_value>[source]
InterfaceFillValue.__lt__(other)[source]

Return self<value.

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

Return self<=value.

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

Return self==value.

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

Return self!=value.

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

Return self>value.

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

Return self>=value.

>>> s1 = sf.Series((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.Series((2, 8, 19), index=('b', 'c', 'd'))
>>> s1.via_fill_value(0) >= s2
<Series>
<Index>
a        True
b        True
c        True
d        False
<<U1>    <bool>
Series.via_fill_value(fill_value).__radd__(other)
via_fill_value = <function Series.via_fill_value>[source]
InterfaceFillValue.__radd__(other)[source]
>>> s1 = sf.Series((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.Series((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.')
Series.via_fill_value(fill_value).__rsub__(other)
via_fill_value = <function Series.via_fill_value>[source]
InterfaceFillValue.__rsub__(other)[source]
>>> s1 = sf.Series((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.Series((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.')
Series.via_fill_value(fill_value).__rmul__(other)
via_fill_value = <function Series.via_fill_value>[source]
InterfaceFillValue.__rmul__(other)[source]
>>> s1 = sf.Series((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.Series((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.')
Series.via_fill_value(fill_value).__rtruediv__(other)
via_fill_value = <function Series.via_fill_value>[source]
InterfaceFillValue.__rtruediv__(other)[source]
>>> s1 = sf.Series((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.Series((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.')
Series.via_fill_value(fill_value).__rfloordiv__(other)
via_fill_value = <function Series.via_fill_value>[source]
InterfaceFillValue.__rfloordiv__(other)[source]
>>> s1 = sf.Series((10, 2, 8), index=('a', 'b', 'c'))
>>> s2 = sf.Series((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.')

Series: 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 | Accessor Type Clinic