Код: Выделить всё
import polars as pl
pl.__version__
# '0.19.15'
# An example from the 0.10 docs:
df = pl.DataFrame({"a": [1, 2, 2, 3]})
df.with_columns(pl.col("a").replace({2: 100}).alias("replaced"))
# AttributeError: 'Expr' object has no attribute 'replace'
Что я делаю не так?
Подробнее здесь: https://stackoverflow.com/questions/790 ... te-replace
Мобильная версия