Detail: IndexGO: Dictionary-Like
Overview: IndexGO: Dictionary-Like
- IndexGO.__contains__(value)
Return True if value in the labels.
>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x') >>> ix <IndexGO: x> a b c d e <<U1> >>> ix.__contains__('a') True
- IndexGO.__iter__()
Iterate over labels.
>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x') >>> ix <IndexGO: x> a b c d e <<U1> >>> tuple(ix.__iter__()) ('a', 'b', 'c', 'd', 'e')
- IndexGO.__reversed__()
Returns a reverse iterator on the index labels.
>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x') >>> ix <IndexGO: x> a b c d e <<U1> >>> tuple(ix.__reversed__()) ('e', 'd', 'c', 'b', 'a')
- IndexGO.values
A 1D NumPy array of the values in the
Index
. This array will have the same dtype as the container.>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x') >>> ix <IndexGO: x> a b c d e <<U1> >>> ix.values_at_depth(0) ['a' 'b' 'c' 'd' 'e']
IndexGO: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Regular Expression | Accessor Hashlib | Accessor Type Clinic