Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
List Comprehension¶
Notice that a walrus expression in a list comprehension must be in included in parentheses (to avoid ambiguitions).
Boolean Column Operators and Functions in Spark
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Operators in Different Programming Languages
| Python | Bash | C/C++ | Java | Julia | |
|---|---|---|---|---|---|
| and | and | -a | && | && | && |
| or | or | -o | || | || | || |
| not | not | ! | ! | ! | ! |
| bit and | & | & | & | & | & |
| bit or | | | | | | | | | | |
| bit not | ~ | ~ | ~ | ~ | ~ |
| bit xor | ^ | ^ | ^ | ^ | ^ |
| vector and | |||||
| vector or | |||||
| vector not | |||||
| equals | == | -eq | == | == | == |
| not equal | != | -ne | != | != | != |
| greater than | > | -gt | > | > | > |
| less than | < | -lt | < | < | < |
| greater than or equal to | >= | -ge | >= | >= | >= |
| less than or equal to … |