Detail: IndexNanosecond: Constructor
Overview: IndexNanosecond: Constructor
- IndexNanosecond.__init__(labels, *, loc_is_iloc=False, name=<object object>)
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.IndexNanosecond(('1789-05-05', '1789-12-31', '1799-11-09')) <IndexNanosecond> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]>
- classmethod IndexNanosecond.from_labels(labels, *, name=None)
Construct an
Index
from an iterable of labels, where each label is a hashable. Provided for a compatible interface toIndexHierarchy
.>>> sf.IndexNanosecond.from_labels(('1789-05-05', '1789-12-31', '1799-11-09')) <IndexNanosecond> 1789-05-05T00:00:00.000000000 1789-12-31T00:00:00.000000000 1799-11-09T00:00:00.000000000 <datetime64[ns]>
- classmethod IndexNanosecond.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.IndexNanosecond.from_pandas(ix) <Index> 1789-05-05 1789-12-31 1799-11-09 <object>
IndexNanosecond: 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