Detail: IndexNanosecondGO: Dictionary-Like
Overview: IndexNanosecondGO: Dictionary-Like
- IndexNanosecondGO.__contains__(value)
Return True if value in the labels. Will only return True for an exact match to the type of dates stored within.
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecondGO> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> ix.__contains__('a') False >>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecondGO> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> ix.__contains__('1789-05-05') False
- IndexNanosecondGO.__iter__()
Iterate over labels.
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecondGO> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> tuple(ix.__iter__()) (numpy.datetime64('1789-05-05T00:00:00.000000000'), numpy.datetime64('1789-12-31T00:00:00.000000000'), numpy.datetime64('1799-11-09T00:00:00.000000000')) >>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecondGO> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> tuple(ix.__iter__()) (numpy.datetime64('1789-05-05T00:00:00.000000000'), numpy.datetime64('1789-12-31T00:00:00.000000000'), numpy.datetime64('1799-11-09T00:00:00.000000000'))
- IndexNanosecondGO.__reversed__()
Returns a reverse iterator on the index labels.
>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecondGO> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> tuple(ix.__reversed__()) (numpy.datetime64('1799-11-09T00:00:00.000000000'), numpy.datetime64('1789-12-31T00:00:00.000000000'), numpy.datetime64('1789-05-05T00:00:00.000000000')) >>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecondGO> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> tuple(ix.__reversed__()) (numpy.datetime64('1799-11-09T00:00:00.000000000'), numpy.datetime64('1789-12-31T00:00:00.000000000'), numpy.datetime64('1789-05-05T00:00:00.000000000'))
- IndexNanosecondGO.values
A 1D NumPy array of the values in the
Index
. This array will have the same dtype as the container.>>> ix = sf.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09')) >>> ix <IndexNanosecondGO> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]> >>> ix.values_at_depth(0) ['1789-05-05T00:00:00.000000000' '1789-12-31T00:00:00.000000000' '1799-11-09T00:00:00.000000000']
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 | Accessor Type Clinic