polars.count#

polars.count(column: str) Expr[source]#
polars.count(column: Series) int
polars.count(column: None = None) Expr

Count the number of values in this column/context.

Parameters:
column

If dtype is:

  • pl.Series : count the values in the series.

  • str : count the values in this column.

  • None : count the number of values in this context.