mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Fix string conversion in example code for clarity and consistency
This commit is contained in:
parent
4af584a748
commit
3d5ef1a94e
@ -47,13 +47,13 @@ use rustframe::{
|
|||||||
let n_periods = 4;
|
let n_periods = 4;
|
||||||
|
|
||||||
// Four business days starting 2024‑01‑02
|
// Four business days starting 2024‑01‑02
|
||||||
a let dates: Vec<NaiveDate> =
|
let dates: Vec<NaiveDate> =
|
||||||
BDatesList::from_n_periods("2024-01-02", BDateFreq::Daily, n_periods)
|
BDatesList::from_n_periods("2024-01-02".to_string(), BDateFreq::Daily, n_periods)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.list()
|
.list()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let col_names = vec!["a".into(), "b".into()];
|
let col_names = vec!["a".to_string(), "b".to_string()];
|
||||||
|
|
||||||
let ma = Matrix::from_cols(vec![
|
let ma = Matrix::from_cols(vec![
|
||||||
vec![1.0, 2.0, 3.0, 4.0],
|
vec![1.0, 2.0, 3.0, 4.0],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user