polars.Series.arr.count_match#

Series.arr.count_match(element: float | str | bool | int | date | datetime | time | Expr) Expr[source]#

Count how often the value produced by element occurs.

Parameters:
element

An expression that produces a single value