Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/py-polars/docs/source/reference/expressions/functions.rst
6939 views
=========
Functions
=========

These functions are available from the Polars module root and can be used as expressions, and sometimes also in eager contexts.

----

**Available in module namespace:**

.. currentmodule:: polars
.. autosummary::
   :toctree: api/

   all
   all_horizontal
   any
   any_horizontal
   approx_n_unique
   arange
   arctan2
   arctan2d
   arg_sort_by
   arg_where
   business_day_count
   coalesce
   concat_arr
   concat_list
   concat_str
   corr
   count
   cov
   cum_count
   cum_fold
   cum_reduce
   cum_sum
   cum_sum_horizontal
   date
   date_range
   date_ranges
   datetime
   datetime_range
   datetime_ranges
   duration
   element
   exclude
   first
   fold
   format
   from_epoch
   groups
   head
   implode
   int_range
   int_ranges
   last
   len
   linear_space
   linear_spaces
   lit
   map_batches
   map_groups
   max
   max_horizontal
   mean
   mean_horizontal
   median
   min
   min_horizontal
   n_unique
   nth
   ones
   quantile
   reduce
   repeat
   rolling_corr
   rolling_cov
   row_index
   select
   sql
   sql_expr
   std
   struct
   sum
   sum_horizontal
   tail
   time
   time_range
   time_ranges
   var
   when
   zeros


**Available in expression namespace:**

.. autosummary::
   :toctree: api/

   Expr.all
   Expr.any
   Expr.approx_n_unique
   Expr.count
   Expr.first
   Expr.head
   Expr.implode
   Expr.map_batches
   Expr.map_elements
   Expr.max
   Expr.mean
   Expr.median
   Expr.min
   Expr.n_unique
   Expr.quantile
   Expr.std
   Expr.sum
   Expr.tail
   Expr.var