|¶
- ColExpr.__or__( ) ColExpr[Bool][source]¶
Boolean OR (__or__)
Examples
>>> t = pdt.Table( ... { ... "a": [True, True, True, False, False, None], ... "b": [True, False, None, False, None, None], ... }, ... name="bool table", ... ) >>> t >> mutate(x=t.a | t.b) >> show() Table bool table, backend: PolarsImpl shape: (6, 3) ┌───────┬───────┬───────┐ │ a ┆ b ┆ x │ │ --- ┆ --- ┆ --- │ │ bool ┆ bool ┆ bool │ ╞═══════╪═══════╪═══════╡ │ true ┆ true ┆ true │ │ true ┆ false ┆ true │ │ true ┆ null ┆ true │ │ false ┆ false ┆ false │ │ false ┆ null ┆ null │ │ null ┆ null ┆ null │ └───────┴───────┴───────┘