Skip to main content
Version: 0.9.6

Expr.log10

def log10() -> Expr

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.10.041393
2.00.30103
│ inf ┆ inf │
│ null ┆ null │
│ NaN ┆ NaN │
└──────┴──────────┘