Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于来自 DataFrame 列的 Series,如何将其转换为 f64 Series 或 f64 ChunkedArray?好像.apply_cast_numeric(|v| v as f64)失败了
.apply_cast_numeric(|v| v as f64)
你想做这样的事情吗?
// coerce 'QTY' column from i32 to f32. df is mutable. df.may_apply(QTY, |s: &Series| s.cast(&DataType::Float32))?;