mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
fix README code example
This commit is contained in:
parent
67d735d08e
commit
15f305fc17
@ -62,10 +62,10 @@ let mb: Matrix<f64> =
|
|||||||
|
|
||||||
let fa: Frame<f64> = Frame::new(
|
let fa: Frame<f64> = Frame::new(
|
||||||
ma.clone(),
|
ma.clone(),
|
||||||
Some(col_names.clone()),
|
col_names.clone(),
|
||||||
Some(RowIndex::Date(dates.clone())),
|
Some(RowIndex::Date(dates.clone())),
|
||||||
);
|
);
|
||||||
let fb: Frame<f64> = Frame::new(mb, Some(col_names), Some(RowIndex::Date(dates)));
|
let fb: Frame<f64> = Frame::new(mb, col_names, Some(RowIndex::Date(dates)));
|
||||||
|
|
||||||
// Math that reads like math
|
// Math that reads like math
|
||||||
let result: Frame<f64> = &fa * &fb; // element‑wise multiply
|
let result: Frame<f64> = &fa * &fb; // element‑wise multiply
|
||||||
|
Loading…
x
Reference in New Issue
Block a user