Many of these methods or variants thereof are available on the objects that contain an index (Series/DataFrame) and those should most likely be used before calling these methods directly.
Index
([data, dtype, copy, name, tupleize_cols])
Immutable sequence used for indexing and alignment.
Properties# Modifying and computations#Index.all
(*args, **kwargs)
Return whether all elements are Truthy.
Index.any
(*args, **kwargs)
Return whether any element is Truthy.
Index.argmin
([axis, skipna])
Return int position of the smallest value in the Series.
Index.argmax
([axis, skipna])
Return int position of the largest value in the Series.
Index.copy
([name, deep])
Make a copy of this object.
Index.delete
(loc)
Make new Index with passed location(-s) deleted.
Index.drop
(labels[, errors])
Make new Index with passed list of labels deleted.
Index.drop_duplicates
(*[, keep])
Return Index with duplicate values removed.
Index.duplicated
([keep])
Indicate duplicate index values.
Index.equals
(other)
Determine if two Index object are equal.
Index.factorize
([sort, use_na_sentinel])
Encode the object as an enumerated type or categorical variable.
Index.identical
(other)
Similar to equals, but checks that object attributes and types are also equal.
Index.insert
(loc, item)
Make new Index inserting new item at location.
Index.is_
(other)
More flexible, faster check like is
but that works through views.
(DEPRECATED) Check if the Index only consists of booleans.
(DEPRECATED) Check if the Index holds categorical data.
(DEPRECATED) Check if the Index is a floating type.
(DEPRECATED) Check if the Index only consists of integers.
(DEPRECATED) Check if the Index holds Interval objects.
(DEPRECATED) Check if the Index only consists of numeric data.
(DEPRECATED) Check if the Index is of the object dtype.
Index.min
([axis, skipna])
Return the minimum value of the Index.
Index.max
([axis, skipna])
Return the maximum value of the Index.
Index.reindex
(target[, method, level, ...])
Create index with target's values.
Index.rename
(name, *[, inplace])
Alter Index or MultiIndex name.
Index.repeat
(repeats[, axis])
Repeat elements of a Index.
Index.where
(cond[, other])
Replace values where the condition is False.
Index.take
(indices[, axis, allow_fill, ...])
Return a new Index of the values selected by the indices.
Index.putmask
(mask, value)
Return a new Index of the values set with the mask.
Index.unique
([level])
Return unique values in the index.
Index.nunique
([dropna])
Return number of unique elements in the object.
Index.value_counts
([normalize, sort, ...])
Return a Series containing counts of unique values.
Compatibility with MultiIndex# Missing values# Conversion#Index.astype
(dtype[, copy])
Create an Index with values cast to dtypes.
Return the first element of the underlying data as a Python scalar.
Index.map
(mapper[, na_action])
Map values using an input mapping or function.
Index.ravel
([order])
Return a view on self.
Return a list of the values.
Index.to_series
([index, name])
Create a Series with both index and values equal to the index keys.
Index.to_frame
([index, name])
Create a DataFrame with a column containing the Index.
Index.view
([cls])
Index.argsort
(*args, **kwargs)
Return the integer indices that would sort the index.
Index.searchsorted
(value[, side, sorter])
Find indices where elements should be inserted to maintain order.
Index.sort_values
(*[, return_indexer, ...])
Return a sorted copy of the index.
Time-specific operations#Index.shift
([periods, freq])
Shift index by desired number of time frequency increments.
Combining / joining / set operations#Index.append
(other)
Append a collection of Index options together.
Index.join
(other, *[, how, level, ...])
Compute join_index and indexers to conform data structures to the new index.
Index.intersection
(other[, sort])
Form the intersection of two Index objects.
Index.union
(other[, sort])
Form the union of two Index objects.
Index.difference
(other[, sort])
Return a new Index with elements of index not in other.
Index.symmetric_difference
(other[, ...])
Compute the symmetric difference of two Index objects.
Selecting#Index.asof
(label)
Return the label from the index, or, if not present, the previous one.
Index.asof_locs
(where, mask)
Return the locations (indices) of labels in the index.
Index.get_indexer
(target[, method, limit, ...])
Compute indexer and mask for new index given the current index.
Index.get_indexer_for
(target)
Guaranteed return of an indexer even when non-unique.
Index.get_indexer_non_unique
(target)
Compute indexer and mask for new index given the current index.
Index.get_level_values
(level)
Return an Index of values for requested level.
Index.get_loc
(key)
Get integer location, slice or boolean mask for requested label.
Index.get_slice_bound
(label, side)
Calculate slice bound that corresponds to given label.
Index.isin
(values[, level])
Return a boolean array where the index values are in values.
Index.slice_indexer
([start, end, step])
Compute the slice indexer for input labels and step.
Index.slice_locs
([start, end, step])
Compute slice locations for input labels.
Numeric Index#RangeIndex
([start, stop, step, dtype, copy, ...])
Immutable Index implementing a monotonic integer range.
CategoricalIndex# Categorical components# Modifying and computations# IntervalIndex#IntervalIndex
(data[, closed, dtype, copy, ...])
Immutable index of intervals that are closed on the same side.
IntervalIndex components#IntervalIndex.from_arrays
(left, right[, ...])
Construct from two arrays defining the left and right bounds.
IntervalIndex.from_tuples
(data[, closed, ...])
Construct an IntervalIndex from an array-like of tuples.
IntervalIndex.from_breaks
(breaks[, closed, ...])
Construct an IntervalIndex from an array of splits.
String describing the inclusive side the intervals.
Return an array representing the data in the Index.
Indicates if an interval is empty, meaning it contains no points.
IntervalIndex.is_non_overlapping_monotonic
Return a boolean whether the IntervalArray is non-overlapping and monotonic.
Return True if the IntervalIndex has overlapping intervals, else False.
Get integer location, slice or boolean mask for requested label.
IntervalIndex.get_indexer
(target[, method, ...])
Compute indexer and mask for new index given the current index.
IntervalIndex.set_closed
(*args, **kwargs)
Return an identical IntervalArray closed on the specified side.
IntervalIndex.contains
(*args, **kwargs)
Check elementwise if the Intervals contain the value.
IntervalIndex.overlaps
(*args, **kwargs)
Check elementwise if an Interval overlaps the values in the IntervalArray.
IntervalIndex.to_tuples
(*args, **kwargs)
Return an ndarray (if self is IntervalArray) or Index (if self is IntervalIndex) of tuples of the form (left, right).
MultiIndex#MultiIndex
([levels, codes, sortorder, ...])
A multi-level, or hierarchical, index object for pandas objects.
MultiIndex constructors# MultiIndex properties# MultiIndex components#MultiIndex.set_levels
(levels, *[, level, ...])
Set new levels on MultiIndex.
MultiIndex.set_codes
(codes, *[, level, ...])
Set new codes on MultiIndex.
Convert a MultiIndex to an Index of Tuples containing the level values.
MultiIndex.to_frame
([index, name, ...])
Create a DataFrame with the levels of the MultiIndex as columns.
MultiIndex.sortlevel
([level, ascending, ...])
Sort MultiIndex at the requested level.
MultiIndex.droplevel
([level])
Return index with requested level(s) removed.
MultiIndex.swaplevel
([i, j])
Swap level i with level j.
MultiIndex.reorder_levels
(order)
Rearrange levels using input order.
MultiIndex.remove_unused_levels
()
Create new MultiIndex from current that removes unused levels.
MultiIndex.drop
(codes[, level, errors])
Make a new pandas.MultiIndex
with the passed list of codes deleted.
MultiIndex.copy
([names, deep, name])
Make a copy of this object.
MultiIndex.append
(other)
Append a collection of Index options together.
MultiIndex.truncate
([before, after])
Slice index between two labels / tuples, return new MultiIndex.
MultiIndex selecting#Create an object to more easily perform multi-index slicing.
DatetimeIndex#DatetimeIndex
([data, freq, tz, normalize, ...])
Immutable ndarray-like of datetime64 data.
Time/date components# Selecting# Time-specific operations# Conversion# Methods# TimedeltaIndex#TimedeltaIndex
([data, unit, freq, closed, ...])
Immutable Index of timedelta64 data.
Components# Conversion# Methods# PeriodIndex#PeriodIndex
([data, ordinal, freq, dtype, ...])
Immutable ndarray holding ordinal values indicating regular periods in time.
Properties# Methods#RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4