pandas.Index¶
-
class
pandas.Index¶ Immutable ndarray implementing an ordered, sliceable set. The basic object storing axis labels for all pandas objects
Parameters: data : array-like (1-dimensional)
dtype : NumPy dtype (default: object)
copy : bool
Make a copy of input ndarray
name : object
Name to be stored in the index
tupleize_cols : bool (default: True)
When True, attempt to create a MultiIndex if possible
Notes
An Index instance can only contain hashable objects
Attributes
Treturn the transpose, which is by definition self asi8basereturn the base object if the memory of the underlying data is shared datareturn the data pointer of the underlying data dtypedtype_strflagshas_duplicateshasnansinferred_typeis_all_datesis_monotonicalias for is_monotonic_increasing (deprecated) is_monotonic_decreasingreturn if the index is monotonic decreasing (only equal or is_monotonic_increasingreturn if the index is monotonic increasing (only equal or is_uniqueitemsizereturn the size of the dtype of the item of the underlying data namenamesnbytesreturn the number of bytes in the underlying data ndimreturn the number of dimensions of the underlying data, by definition 1 nlevelsshapereturn a tuple of the shape of the underlying data sizereturn the number of elements in the underlying data stridesreturn the strides of the underlying data valuesreturn the underlying data as an ndarray Methods