The Index type is the immutable, ordered sequence of labels
that underpins both Series and DataFrame.
RangeIndex is a memory-efficient subclass for integer ranges.
Edit any code block below and press ▶ Run
(or Ctrl+Enter) to execute it live in your browser.
Construct indexes from arrays of labels, or use RangeIndex for efficient integer sequences.
Inspect size, shape, uniqueness, and monotonicity of an index.
Find positions of labels, check membership, and test inclusion.
Combine indexes with union, intersection, difference, and symmetric difference.
Sort labels and compute aggregates like min, max, and argsort.
Append, insert, delete, drop, and rename — each returns a new Index.
Detect, drop, and fill null values in an index.
Stores only start/stop/step — values are computed on the fly.
Write your own tsb code below. All exports from tsb are available:
Index, RangeIndex, Series, Dtype, and more.