操作/选择#

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

追加表达式。

Expr.arg_sort(*[, 降序, 空值最后])

获取将对此列进行排序的索引值。

Expr.arg_true()

返回表达式评估为True的索引。

Expr.backward_fill([limit])

用下一个非空值填充缺失值。

Expr.bottom_k([k])

返回k个最小的元素。

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

返回与by列中k个最小元素对应的元素。

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

在数据类型之间进行转换。

Expr.ceil()

向上取整到最接近的整数值。

Expr.clip([lower_bound, upper_bound])

将给定边界之外的值设置为边界值。

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

将连续值分箱为离散类别。

Expr.drop_nans()

删除所有浮点数的NaN值。

Expr.drop_nulls()

删除所有空值。

Expr.explode()

展开一个列表表达式。

Expr.extend_constant(value, n)

用于使用值的'n'个副本扩展Series的极快方法。

Expr.fill_nan(value)

用填充值填充浮点数的NaN值。

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

使用指定的值或策略填充空值。

Expr.filter(*predicates, **constraints)

根据一个或多个谓词表达式过滤表达式。

Expr.flatten()

展平一个列表或字符串列。

Expr.floor()

向下舍入到最接近的整数值。

Expr.forward_fill([limit])

用最后一个非空值填充缺失值。

Expr.gather(indices)

按索引取值。

Expr.gather_every(n[, 偏移量])

取Series中的每第n个值并返回一个新的Series。

Expr.get(index)

通过索引返回单个值。

Expr.head([n])

获取前n行。

Expr.inspect([fmt])

打印此表达式求值的结果并传递该值。

Expr.interpolate([method])

使用插值填充空值。

Expr.interpolate_by(by)

使用基于另一列的插值来填充空值。

Expr.limit([n])

获取前 n 行(Expr.head() 的别名)。

Expr.lower_bound()

计算下限。

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

提供了一种结构化的方式来应用一系列用户定义的函数(UDFs)。

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

将连续值根据其分位数分箱到离散类别中。

Expr.rechunk()

为这个系列创建一个单一的内存块。

Expr.reinterpret(*[, signed])

将底层位重新解释为有符号/无符号整数。

Expr.repeat_by(by)

按照给定表达式中的指定重复此系列中的元素。

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

用相同数据类型的不同值替换给定的值。

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

用不同的值替换所有值。

Expr.reshape(dimensions)

将此表达式重塑为扁平列或数组列。

Expr.reverse()

反转选择。

Expr.rle()

使用游程编码压缩列数据。

Expr.rle_id()

为每次运行的相同值获取一个唯一的整数ID。

Expr.round([decimals])

将底层浮点数据四舍五入到 decimals 位小数。

Expr.round_sig_figs(digits)

四舍五入到指定的有效数字位数。

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

从这个表达式中取样。

Expr.shift([n, fill_value])

将值按给定的索引数进行移动。

Expr.shrink_dtype()

将数值列缩小到所需的最小数据类型。

Expr.shuffle([seed])

打乱此表达式的内容。

Expr.slice(offset[, length])

获取此表达式的一个切片。

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

对此列进行排序。

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

按其他列的排序对此列进行排序。

Expr.tail([n])

获取最后 n 行。

Expr.to_physical()

将逻辑数据类型转换为物理表示。

Expr.top_k([k])

返回k个最大的元素。

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

返回与by列中k个最大元素对应的元素。

Expr.upper_bound()

计算上限。

Expr.where(predicate)

过滤单个列。