Skip to content

Commit

Permalink
correct expressions definition
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Feb 28, 2024
1 parent 6bb937d commit 92feac4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/user-guide/concepts/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ Polars performs these core data transformations very quickly by:
- automatic query optimization on each expression
- automatic parallelization of expressions on many columns

Polars expressions are a mapping from a series to a series (or mathematically `Fn(Series) -> Series`). As expressions have a `Series` as an input and a `Series` as an output then it is straightforward to do a sequence of expressions (similar to method chaining in pandas).
Polars expressions are a mapping from a dataframe to a series (or mathematically `Fn(DataFrame) -> Series`). As expressions have a `Series` as output then it is straightforward to do a sequence of expressions (similar to method chaining in pandas) which just keep transforming the output `Series` from the previous step.

If this seems abstract and confusing - don't worry! People quickly develop an intuition for expressions
just by looking at a few examples. We'll do that next!

## Examples

Expand Down

0 comments on commit 92feac4

Please sign in to comment.