xorbits.pandas.Index#
- class xorbits.pandas.Index(*args, **kwargs)[source]#
Immutable sequence used for indexing and alignment.
The basic object storing axis labels for all pandas objects.
- Parameters
data (array-like (1-dimensional) (Not supported yet)) –
dtype (NumPy dtype (default: object) (Not supported yet)) – If dtype is None, we find the dtype that best fits the data. If an actual dtype is provided, we coerce to that dtype if it’s safe. Otherwise, an error will be raised.
copy (bool (Not supported yet)) – Make a copy of input ndarray.
name (object (Not supported yet)) – Name to be stored in the index.
tupleize_cols (bool (default: True) (Not supported yet)) – When True, attempt to create a MultiIndex if possible.
See also
RangeIndexIndex implementing a monotonic integer range.
CategoricalIndexIndex of
Categoricals.MultiIndexA multi-level, or hierarchical Index.
IntervalIndexAn Index of
Intervals.DatetimeIndexIndex of datetime64 data.
TimedeltaIndexIndex of timedelta64 data.
PeriodIndexIndex of Period data.
NumericIndexIndex of numpy int/uint/float data.
Int64IndexIndex of purely int64 labels (deprecated).
UInt64IndexIndex of purely uint64 labels (deprecated).
Float64IndexIndex of purely float64 labels (deprecated).
Notes
An Index instance can only contain hashable objects
Examples
>>> pd.Index([1, 2, 3]) Int64Index([1, 2, 3], dtype='int64')
>>> pd.Index(list('abc')) Index(['a', 'b', 'c'], dtype='object')
This docstring was copied from pandas.
Methods
__init__(*args, **kwargs)Attributes
data