Detail: SeriesHE: Dictionary-Like

Overview: SeriesHE: Dictionary-Like

SeriesHE.__contains__(value)

Inclusion of value in index labels.

Returns

bool

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s.__contains__('a')
True
SeriesHE.__iter__()

Iterator of index labels, same as static_frame.Series.keys.

Returns

Iterator[Hashasble]

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> tuple(s.__iter__())
('a', 'b', 'c')
SeriesHE.__reversed__()

Returns a reverse iterator on the series’ index.

Returns

Index

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> tuple(s.__reversed__())
('c', 'b', 'a')
SeriesHE.get(key, default=None)

Return the value found at the index key, else the default if the key is not found.

Returns

Any

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s.get('a')
10
>>> s.get('z', -1)
-1
SeriesHE.items()

Iterator of pairs of index label and value.

Returns

Iterator[Tuple[Hashable, Any]]

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> tuple(s.items())
(('a', 10), ('b', 2), ('c', 8))
SeriesHE.keys()

Iterator of index labels.

Returns

Iterator[Hashable]

>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s.keys()
<Index>
a
b
c
<<U1>
SeriesHE.values
>>> s = sf.SeriesHE((10, 2, 8), index=('a', 'b', 'c'))
>>> s.values
[10  2  8]

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