tabsdata.tableframe.expr.expr.Expr.is_unique#
- Expr.is_unique() Expr [source]#
If an element value is unique for all values in the column.
Example:
>>> import tabsdata as td >>> >>> tf: td.TableFrame ... >>> >>> tf = tf.select(td.col("temp"), td.col("temp").is_unique() >>> .alias("unique")) >>> ┌──────┬──────────┐ │ temp ┆ unique │ │ --- ┆ --- │ │ f64 ┆ bool │ ╞══════╪══════════╡ │ 1.1 ┆ false │ │ 1.1 ┆ false │ │ None ┆ true │ │ 2.0 ┆ true │ └──────┴──────────┘