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

RangeIndex

Index implementing a monotonic integer range.

CategoricalIndex

Index of Categorical s.

MultiIndex

A multi-level, or hierarchical Index.

IntervalIndex

An Index of Interval s.

DatetimeIndex

Index of datetime64 data.

TimedeltaIndex

Index of timedelta64 data.

PeriodIndex

Index of Period data.

NumericIndex

Index of numpy int/uint/float data.

Int64Index

Index of purely int64 labels (deprecated).

UInt64Index

Index of purely uint64 labels (deprecated).

Float64Index

Index 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.

__init__(*args, **kwargs)[source]#

Methods

__init__(*args, **kwargs)

Attributes

data