Detail: IndexDateGO: Dictionary-Like
Overview: IndexDateGO: Dictionary-Like
- IndexDateGO.__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.IndexDateGO(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDateGO> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix.__contains__('a') False >>> ix = sf.IndexDateGO(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDateGO> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix.__contains__('1517-06-30') True
- IndexDateGO.__iter__()
Iterate over labels.
>>> ix = sf.IndexDateGO(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDateGO> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> tuple(ix.__iter__()) (numpy.datetime64('1517-04-01'), numpy.datetime64('1517-12-01'), numpy.datetime64('1517-06-30')) >>> ix = sf.IndexDateGO(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDateGO> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> tuple(ix.__iter__()) (numpy.datetime64('1517-04-01'), numpy.datetime64('1517-12-01'), numpy.datetime64('1517-06-30'))
- IndexDateGO.__reversed__()
Returns a reverse iterator on the index labels.
>>> ix = sf.IndexDateGO(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDateGO> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> tuple(ix.__reversed__()) (numpy.datetime64('1517-06-30'), numpy.datetime64('1517-12-01'), numpy.datetime64('1517-04-01')) >>> ix = sf.IndexDateGO(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDateGO> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> tuple(ix.__reversed__()) (numpy.datetime64('1517-06-30'), numpy.datetime64('1517-12-01'), numpy.datetime64('1517-04-01'))
- IndexDateGO.values
A 1D NumPy array of the values in the
Index
. This array will have the same dtype as the container.>>> ix = sf.IndexDateGO(('1517-04-01', '1517-12', '1517-06-30')) >>> ix <IndexDateGO> 1517-04-01 1517-12-01 1517-06-30 <datetime64[D]> >>> ix.values_at_depth(0) ['1517-04-01' '1517-12-01' '1517-06-30']
IndexDateGO: 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