Manipulation/selection#

Expr.append(other, *[, upcast])

Append expressions.

Expr.arg_sort(*[, descending, nulls_last])

Get the index values that would sort this column.

Expr.arg_true()

Return indices where expression evaluates True.

Expr.backward_fill([limit])

Fill missing values with the next to be seen values.

Expr.bottom_k([k])

Return the k smallest elements.

Expr.bottom_k_by(by[, k, reverse])

Return the elements corresponding to the k smallest elements of the by column(s).

Expr.cast(dtype, *[, strict, wrap_numerical])

Cast between data types.

Expr.ceil()

Rounds up to the nearest integer value.

Expr.clip([lower_bound, upper_bound])

Set values outside the given boundaries to the boundary value.

Expr.cut(breaks, *[, labels, left_closed, ...])

Bin continuous values into discrete categories.

Expr.drop_nans()

Drop all floating point NaN values.

Expr.drop_nulls()

Drop all null values.

Expr.explode()

Explode a list expression.

Expr.extend_constant(value, n)

Extremely fast method for extending the Series with 'n' copies of a value.

Expr.fill_nan(value)

Fill floating point NaN value with a fill value.

Expr.fill_null([value, strategy, limit])

Fill null values using the specified value or strategy.

Expr.filter(*predicates, **constraints)

Filter the expression based on one or more predicate expressions.

Expr.flatten()

Flatten a list or string column.

Expr.floor()

Rounds down to the nearest integer value.

Expr.forward_fill([limit])

Fill missing values with the latest seen values.

Expr.gather(indices)

Take values by index.

Expr.gather_every(n[, offset])

Take every nth value in the Series and return as a new Series.

Expr.get(index)

Return a single value by index.

Expr.head([n])

Get the first n rows.

Expr.inspect([fmt])

Print the value that this expression evaluates to and pass on the value.

Expr.interpolate([method])

Fill null values using interpolation.

Expr.interpolate_by(by)

Fill null values using interpolation based on another column.

Expr.limit([n])

Get the first n rows (alias for Expr.head()).

Expr.lower_bound()

Calculate the lower bound.

Expr.pipe(function, *args, **kwargs)

Offers a structured way to apply a sequence of user-defined functions (UDFs).

Expr.qcut(quantiles, *[, labels, ...])

Bin continuous values into discrete categories based on their quantiles.

Expr.rechunk()

Create a single chunk of memory for this Series.

Expr.reinterpret(*[, signed])

Reinterpret the underlying bits as a signed/unsigned integer.

Expr.repeat_by(by)

Repeat the elements in this Series as specified in the given expression.

Expr.replace(old[, new, default, return_dtype])

Replace the given values by different values of the same data type.

Expr.replace_strict(old[, new, default, ...])

Replace all values by different values.

Expr.reshape(dimensions)

Reshape this Expr to a flat column or an Array column.

Expr.reverse()

Reverse the selection.

Expr.rle()

Compress the column data using run-length encoding.

Expr.rle_id()

Get a distinct integer ID for each run of identical values.

Expr.round([decimals])

Round underlying floating point data by decimals digits.

Expr.round_sig_figs(digits)

Round to a number of significant figures.

Expr.sample([n, fraction, with_replacement, ...])

Sample from this expression.

Expr.shift([n, fill_value])

Shift values by the given number of indices.

Expr.shrink_dtype()

Shrink numeric columns to the minimal required datatype.

Expr.shuffle([seed])

Shuffle the contents of this expression.

Expr.slice(offset[, length])

Get a slice of this expression.

Expr.sort(*[, descending, nulls_last])

Sort this column.

Expr.sort_by(by, *more_by[, descending, ...])

Sort this column by the ordering of other columns.

Expr.tail([n])

Get the last n rows.

Expr.to_physical()

Cast to physical representation of the logical dtype.

Expr.top_k([k])

Return the k largest elements.

Expr.top_k_by(by[, k, reverse])

Return the elements corresponding to the k largest elements of the by column(s).

Expr.upper_bound()

Calculate the upper bound.

Expr.where(predicate)

Filter a single column.