Expr.log10
methodView source ↗
def log10() -> TdExpr
Categories: numeric
Calculate the logarithm base 10.
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").log10().alias("log10")
>>>
┌──────┬──────────┐
│ val ┆ log10 │
│ --- ┆ --- │
│ f64 ┆ f64 │
╞══════╪══════════╡
│ -1.0 ┆ NaN │
│ 0.0 ┆ -inf │
│ 1.1 ┆ 0.041393 │
│ 2.0 ┆ 0.30103 │
│ inf ┆ inf │
│ null ┆ null │
│ NaN ┆ NaN │
└──────┴──────────┘