Detail: IndexNanosecondGO: SelectorΒΆ

Overview: IndexNanosecondGO: Selector

IndexNanosecondGO.drop.iloc[key]
IndexNanosecondGO.drop
InterfaceSelectDuo.iloc
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix.drop.iloc[1]
<IndexNanosecondGO>
1789-05-05T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.drop.iloc[1:]
<IndexNanosecondGO>
1789-05-05T00:00:00.000000000
<datetime64[ns]>
>>> ix.drop.iloc[[0, 2]]
<IndexNanosecondGO>
1789-12-31T00:00:00.000000000
<datetime64[ns]>
IndexNanosecondGO.drop.loc[key]
IndexNanosecondGO.drop
InterfaceSelectDuo.loc
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix.drop.loc['1789-05-05']
<IndexNanosecondGO>
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.drop.loc['1789-05-05':]
<IndexNanosecondGO>
<datetime64[ns]>
IndexNanosecondGO[key]
IndexNanosecondGO.__getitem__ = <function Index.__getitem__>
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix[1]
1789-12-31T00:00:00.000000000
>>> ix[1:]
<IndexNanosecondGO>
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix[[0, 2]]
<IndexNanosecondGO>
1789-05-05T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
IndexNanosecondGO.iloc[key]
IndexNanosecondGO.iloc
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix.iloc[1]
1789-12-31T00:00:00.000000000
>>> ix.iloc[1:]
<IndexNanosecondGO>
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
>>> ix.iloc[[0, 2]]
<IndexNanosecondGO>
1789-05-05T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
IndexNanosecondGO.loc[key]
IndexNanosecondGO.loc
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> ix.loc['1789-05-05']
<IndexNanosecondGO>
1789-05-05T00:00:00.000000000
<datetime64[ns]>
>>> ix.loc['1789-05-05':]
<IndexNanosecondGO>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>

IndexNanosecondGO: Constructor | Exporter | Attribute | Method | Dictionary-Like | Display | Selector | Iterator | Operator Binary | Operator Unary | Accessor Values | Accessor Datetime | Accessor String | Accessor Regular Expression | Accessor Hashlib