Detail: IndexMinute: Constructor#
Overview: IndexMinute: Constructor
- IndexMinute.__init__(labels, /, *, loc_is_iloc=False, name=<object object>, sort_status=SortStatus.UNKNOWN)#
Initializer.
- Parameters:
labels – Iterable of hashable values to be used as the index labels. If strings, NumPy datetime conversions will be applied.
name – A hashable object to label the container.
>>> sf.IndexMinute(('1517-04-01', '1517-12', '1517-06-30')) <IndexMinute> 1517-04-01T00:00 1517-12-01T00:00 1517-06-30T00:00 <datetime64[m]>
- classmethod IndexMinute.from_difference(*others)#
Construct a new Index based on the difference with Index, containers, or NumPy arrays. Retains order.
>>> ix1 = sf.IndexMinute.from_labels(('1517-04-01', '1517-12', '1517-06-30')) >>> ix1 <IndexMinute> 1517-04-01T00:00 1517-12-01T00:00 1517-06-30T00:00 <datetime64[m]> >>> ix2 = sf.IndexMinute.from_labels(('2022-04-01', '2021-12-31', '2018-06-30')) >>> ix2 <IndexMinute> 2022-04-01T00:00 2021-12-31T00:00 2018-06-30T00:00 <datetime64[m]> >>> sf.IndexMinute.from_difference(ix1, ix2) <IndexMinute> 1517-04-01T00:00 1517-12-01T00:00 1517-06-30T00:00 <datetime64[m]>
- classmethod IndexMinute.from_intersection(*others)#
Construct a new Index based on the intersection with Index, containers, or NumPy arrays. Identical comparisons retain order.
>>> ix1 = sf.IndexMinute.from_labels(('1517-04-01', '1517-12', '1517-06-30')) >>> ix1 <IndexMinute> 1517-04-01T00:00 1517-12-01T00:00 1517-06-30T00:00 <datetime64[m]> >>> ix2 = sf.IndexMinute.from_labels(('2022-04-01', '2021-12-31', '2018-06-30')) >>> ix2 <IndexMinute> 2022-04-01T00:00 2021-12-31T00:00 2018-06-30T00:00 <datetime64[m]> >>> sf.IndexMinute.from_intersection(ix1, ix2) <IndexMinute> <datetime64[m]>
- classmethod IndexMinute.from_labels(labels, /, *, name=None)#
Construct an
Indexfrom an iterable of labels, where each label is a hashable. Provided for a compatible interface toIndexHierarchy.>>> sf.IndexMinute.from_labels(('1517-04-01', '1517-12', '1517-06-30')) <IndexMinute> 1517-04-01T00:00 1517-12-01T00:00 1517-06-30T00:00 <datetime64[m]>
- classmethod IndexMinute.from_pandas(value, /)#
Given a Pandas index, return the appropriate IndexBase derived class.
>>> ix = pd.Index(('1517-04-01', '1517-12', '1517-06-30')) >>> sf.IndexMinute.from_pandas(ix) <Index> 1517-04-01 1517-12 1517-06-30 <object>
- classmethod IndexMinute.from_union(*others)#
Construct a new Index based on the union with Index, containers, or NumPy arrays. Identical comparisons retain order.
>>> ix1 = sf.IndexMinute.from_labels(('1517-04-01', '1517-12', '1517-06-30')) >>> ix1 <IndexMinute> 1517-04-01T00:00 1517-12-01T00:00 1517-06-30T00:00 <datetime64[m]> >>> ix2 = sf.IndexMinute.from_labels(('2022-04-01', '2021-12-31', '2018-06-30')) >>> ix2 <IndexMinute> 2022-04-01T00:00 2021-12-31T00:00 2018-06-30T00:00 <datetime64[m]> >>> sf.IndexMinute.from_union(ix1, ix2) <IndexMinute> 1517-04-01T00:00 1517-06-30T00:00 1517-12-01T00:00 2018-06-30T00:00 2021-12-31T00:00 2022-04-01T00:00 <datetime64[m]>
IndexMinute: 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