pub fn bars_to_dataframe(bars: &[Bar]) -> Result<DataFrame>
Convert a slice of Bars into a Polars DataFrame.