我目前正在使用极坐标数据框中创建一个新列
predictions = [10, 20, 30, 40, 50] df['predictions'] = predictions
其中predictions是一个 numpy 数组或列表,其中包含我用其他工具计算的值。
predictions
然而,Polars 发出警告,该选项将被弃用。如何使用 来实现相同的结果.with_columns()?
.with_columns()
python-polars
python-polars ×1