All required
This commit is contained in:
parent
44b4e0d72f
commit
df63764a9f
7 changed files with 45 additions and 128 deletions
|
|
@ -40,14 +40,6 @@ pub struct CrimeByYearData {
|
|||
}
|
||||
|
||||
impl CrimeByYearData {
|
||||
pub fn empty() -> Self {
|
||||
Self {
|
||||
crime_types: Vec::new(),
|
||||
years_by_type: Vec::new(),
|
||||
series_by_postcode: FxHashMap::default(),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn load(path: &Path) -> anyhow::Result<Self> {
|
||||
run_polars_io(|| Self::load_inner(path))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue