Shortcuts

torcharrow.NumericalColumn.describe

NumericalColumn.describe(percentiles=None, include: Optional[List[DType]] = None, exclude: Optional[List[DType]] = None)

生成描述性统计。

Parameters:
  • 类似数组 (百分位数 -) – 定义要计算的百分位数。如果为None,则使用[25,50,75]。

  • None (默认) – 定义要计算的百分位数。如果为None,则使用[25,50,75]。

示例

>>> import torcharrow
>>> t = ta.column([1,2,999,4])
>>> t.describe()
  index  statistic      value
-------  -----------  -------
      0  count          4
      1  mean         251.5
      2  std          498.335
      3  min            1
      4  25%            1.5
      5  50%            3
      6  75%          501.5
      7  max          999