Series is a one-dimensional labeled array — the TypeScript
equivalent of pandas.Series. It supports element access,
arithmetic, statistics, boolean masking, and missing-value handling.
Edit any code block below and press ▶ Run
(or Ctrl+Enter) to execute it live in your browser.
Construct a Series from an options object or use Series.fromObject() for key→value data.
Inspect the size, shape, dtype, and other metadata of a Series.
Use at() / iat() for single elements, and loc() / iloc() for label-based or positional slicing.
Element-wise operations with a scalar or another Series: add, sub, mul, div, mod, pow.
Element-wise comparison returns a boolean Series: eq, ne, lt, le, gt, ge.
Use filter() with a boolean array or boolean Series to select elements.
Detect, drop, and fill null / NaN values.
Aggregation and descriptive statistics: sum, mean, std, median, unique, valueCounts, and more.
Sort by values or by index labels, with control over direction and NA placement.
Write your own tsb code below. All exports from tsb are available:
Series, Index, RangeIndex, Dtype, and more.