mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Update README to use DateFreq instead of BDateFreq for consistency
This commit is contained in:
parent
d8239114cf
commit
e5d8f4386c
@ -44,7 +44,7 @@ use chrono::NaiveDate;
|
|||||||
use rustframe::{
|
use rustframe::{
|
||||||
frame::{Frame, RowIndex},
|
frame::{Frame, RowIndex},
|
||||||
matrix::{BoolOps, Matrix, SeriesOps},
|
matrix::{BoolOps, Matrix, SeriesOps},
|
||||||
utils::{BDateFreq, BDatesList},
|
utils::{DateFreq, BDatesList},
|
||||||
};
|
};
|
||||||
|
|
||||||
let n_periods = 4;
|
let n_periods = 4;
|
||||||
@ -53,8 +53,7 @@ let n_periods = 4;
|
|||||||
let dates: Vec<NaiveDate> =
|
let dates: Vec<NaiveDate> =
|
||||||
BDatesList::from_n_periods("2024-01-02".to_string(), 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<String> = vec!["a".to_string(), "b".to_string()];
|
let col_names: Vec<String> = vec!["a".to_string(), "b".to_string()];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user