fix README code example

This commit is contained in:
Palash Tyagi 2025-04-28 19:22:46 +01:00
parent 67d735d08e
commit 15f305fc17

View File

@ -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; // elementwise multiply let result: Frame<f64> = &fa * &fb; // elementwise multiply