Python Operators#
The table below shows what built-in Python operators correspond to in Excel when excelbird objects are used in arithmetic python expressions, i.e. product = my_row * my_col. These rules apply for any excelbird object that can handle expressions - Cell, Col/Row, Frame/VFrame
Excelbird tries to mimic Excel syntax wherever possible, but in a handful of cases this cannot be done. The most common example is the array range operator,
:. Where in Excel you’d usea:b, in excelbird usea >> b
The following are the same in excelbird and Excel
Python | Excel | |
|---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
The following are all different in excelbird and Excel
Python | Excel | |
|---|---|---|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Notice same object is on each sides |
|
|
Built-in python functions work as well. Note: For sum(), you must place your element(s) inside a list, even if there is only one.
Python | Excel | |
|---|---|---|
|
| Don’t do this. Pass list instead |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| Excel’s floor takes extra param. |
|
| Excel’s ceiling takes extra param. |