docs/user-guide/expressions/operators.md
This section describes how to use basic operators (e.g. addition, subtraction) in conjunction with Expressions. We will provide various examples using different themes in the context of the following dataframe.
!!! note Operator Overloading
In Rust and Python it is possible to use the operators directly (as in `+ - * / < > `) as the language allows operator overloading. For instance, the operator `+` translates to the `.add()` method. You can choose the one you prefer.
{{code_block('user-guide/expressions/operators','dataframe',['DataFrame'])}}
--8<-- "python/user-guide/expressions/operators.py:setup"
--8<-- "python/user-guide/expressions/operators.py:dataframe"
{{code_block('user-guide/expressions/operators','numerical',['operators'])}}
--8<-- "python/user-guide/expressions/operators.py:numerical"
{{code_block('user-guide/expressions/operators','logical',['operators'])}}
--8<-- "python/user-guide/expressions/operators.py:logical"