pub fn dataframe_to_bars(df: &DataFrame) -> Result<Vec<Bar>>
Convert a Polars DataFrame back into Vec.