Skip to content

Commit 72e094d

Browse files
committed
Complete post analysis with Marimo Notebook
1 parent 84e82a6 commit 72e094d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/main.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,6 @@ fn get_run_setups() -> PolarsResult<RunsSetup> {
3737
Ok(result)
3838
}
3939

40-
fn test() -> PolarsResult<()> {
41-
// Import premium rates
42-
let cwd = std::env::current_dir()?;
43-
let parent_folder_path = cwd.parent().unwrap().to_path_buf();
44-
let file_path = parent_folder_path.join("results/first_test/run_0/projected_df.parquet");
45-
let projection_lf = LazyFrame::scan_parquet(file_path.to_str().unwrap(), Default::default())?;
46-
47-
// Get column names from projection_lf
48-
let df = projection_lf.clone().collect()?;
49-
let schema = df.schema();
50-
let column_names: Vec<String> = schema.iter_names().map(|s| s.to_string()).collect();
51-
52-
column_names.contains(&"prem_pp".to_string());
53-
54-
Ok(())
55-
}
5640

5741
//---------------------------------------------------------------------------------------------------------
5842
// MAIN

0 commit comments

Comments
 (0)