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__()) (np.str_('a'), np.str_('b'), np.str_('c'), np.str_('d'), np.str_('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__()) (np.str_('e'), np.str_('d'), np.str_('c'), np.str_('b'), np.str_('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