Detail: IndexNanosecondGO: Constructor

Overview: IndexNanosecondGO: Constructor

IndexNanosecondGO.__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.IndexNanosecondGO(('1789-05-05', '1789-12-31', '1799-11-09'))
<IndexNanosecondGO>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
classmethod IndexNanosecondGO.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.IndexNanosecondGO.from_labels(('1789-05-05', '1789-12-31', '1799-11-09'))
<IndexNanosecondGO>
1789-05-05T00:00:00.000000000
1789-12-31T00:00:00.000000000
1799-11-09T00:00:00.000000000
<datetime64[ns]>
classmethod IndexNanosecondGO.from_pandas(value)

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

>>> ix = pd.Index(('1789-05-05', '1789-12-31', '1799-11-09'))
>>> sf.IndexNanosecondGO.from_pandas(ix)
<IndexGO>
1789-05-05
1789-12-31
1799-11-09
<object>

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