Index objects#

Constructor#

Index(data, **_)

Properties#

Index.has_duplicates

Index.hasnans

Return True if there are any NaNs.

Index.is_monotonic_decreasing

Return boolean scalar if values in the object are monotonic_decreasing.

Index.is_monotonic_increasing

Return boolean scalar if values in the object are monotonic_increasing.

Index.is_unique

Return boolean if values in the index are unique.

Index.name

Index.names

Index.ndim

Index.size

Modifying and computations#

Index.all()

Index.any()

Index.argmax([axis, skipna])

Return int position of the smallest value in the Series.

Index.argmin([axis, skipna])

Return int position of the smallest value in the Series.

Index.drop(labels[, errors])

Make new Index with passed list of labels deleted.

Index.drop_duplicates([keep, method])

Return Index with duplicate values removed.

Index.factorize([sort, use_na_sentinel])

Encode the object as an enumerated type or categorical variable.

Index.insert(loc, value)

Make new Index inserting new item at location.

Index.max([axis, skipna])

Index.min([axis, skipna])

Index.rename(name[, inplace])

Alter Index or MultiIndex name.

Index.repeat(repeats[, axis])

Repeat elements of an Index.

Compatibility with MultiIndex#

Index.droplevel(level)

Return index with requested level(s) removed.

Index.set_names(names[, level, inplace])

Set Index or MultiIndex name.

Missing values#

Index.dropna([how])

Return Index without NA/NaN values.

Index.fillna([value, downcast])

Fill NA/NaN values with the specified value.

Index.isna()

Detect missing values.

Index.notna()

Detect existing (non-missing) values.

Conversion#

Index.astype(dtype[, copy])

Create an Index with values cast to dtypes.

Index.to_frame([index, name])

Create a DataFrame with a column containing the Index.

Index.to_series([index, name])

Create a Series with both index and values equal to the index keys.

Sorting#

Index.argsort(*args, **kwargs)

Selecting#

Index.get_level_values(level)

Return vector of label values for requested level.

MaxFrame Extensions#

Index.rechunk(chunk_size[, reassign_worker])

Rechunk DataFrame, Series or Index data.