Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/docs/source/src/python/user-guide/expressions/numpy-example.py
7890 views
1
import polars as pl
2
import numpy as np
3
4
df = pl.DataFrame({"a": [1, 2, 3], "b": [4, 5, 6]})
5
6
out = df.select(np.log(pl.all()).name.suffix("_log"))
7
print(out)
8
9