With a Series which comes from a column of DataFrame, how could cast it into a f64 Series or f64 ChunkedArray? It seems .apply_cast_numeric(|v| v as f64)
got failure.
Asked
Active
Viewed 1,035 times
0

Hakase
- 211
- 1
- 12
1 Answers
1
You want to do something like this?
// coerce 'QTY' column from i32 to f32. df is mutable.
df.may_apply(QTY, |s: &Series| s.cast(&DataType::Float32))?;

Takash Futada
- 686
- 6
- 17