Detail: IndexMillisecond: Constructor

Overview: IndexMillisecond: Constructor

IndexMillisecond.__init__(labels, *, name=<object object>, loc_is_iloc=False)

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.IndexMillisecond(('1517-04-01', '1517-12-31', '1517-06-30'))
<IndexMillisecond>
1517-04-01T00:00:00.000
1517-12-31T00:00:00.000
1517-06-30T00:00:00.000
<datetime64[ms]>
classmethod IndexMillisecond.from_labels(labels, *, name=None)

Construct an Index from an iterable of labels, where each label is a hashable. Provided for a compatible interface to IndexHierarchy.

>>> sf.IndexMillisecond.from_labels(('1517-04-01', '1517-12-31', '1517-06-30'))
<IndexMillisecond>
1517-04-01T00:00:00.000
1517-12-31T00:00:00.000
1517-06-30T00:00:00.000
<datetime64[ms]>
classmethod IndexMillisecond.from_pandas(value)

Given a Pandas index, return the appropriate IndexBase derived class.

>>> ix = pd.Index(('1517-04-01', '1517-12-31', '1517-06-30'))
>>> sf.IndexMillisecond.from_pandas(ix)
<Index>
1517-04-01
1517-12-31
1517-06-30
<object>

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