Detail: IndexGO: SelectorΒΆ

Overview: IndexGO: Selector

IndexGO.drop.iloc[key]
IndexGO.drop
InterfaceSelectDuo.iloc
>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x')
>>> ix.drop.iloc[2]
<IndexGO: x>
a
b
d
e
<<U1>
>>> ix.drop.iloc[2:]
<IndexGO: x>
a
b
<<U1>
>>> ix.drop.iloc[[0, 3]]
<IndexGO: x>
b
c
e
<<U1>
IndexGO.drop.loc[key]
IndexGO.drop
InterfaceSelectDuo.loc
>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x')
>>> ix.drop.loc['c']
<IndexGO: x>
a
b
d
e
<<U1>
>>> ix.drop.loc['c':]
<IndexGO: x>
a
b
<<U1>
>>> ix.drop.loc[['a', 'd']]
<IndexGO: x>
b
c
e
<<U1>
IndexGO[key]
IndexGO.__getitem__ = <function Index.__getitem__>
>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x')
>>> ix[2]
c
>>> ix[2:]
<IndexGO: x>
c
d
e
<<U1>
>>> ix[[0, 3]]
<IndexGO: x>
a
d
<<U1>
IndexGO.iloc[key]
IndexGO.iloc
>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x')
>>> ix.iloc[2]
c
>>> ix.iloc[2:]
<IndexGO: x>
c
d
e
<<U1>
>>> ix.iloc[[0, 3]]
<IndexGO: x>
a
d
<<U1>
IndexGO.loc[key]
IndexGO.loc
>>> ix = sf.IndexGO(('a', 'b', 'c', 'd', 'e'), name='x')
>>> ix.loc['c']
c
>>> ix.loc['c':]
<IndexGO: x>
c
d
e
<<U1>
>>> ix.loc[['a', 'e']]
<IndexGO: x>
a
e
<<U1>

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