Skip to content

Commit

Permalink
REFAC: Remove 'polars' dependency and update DataFrame usage to 'pand…
Browse files Browse the repository at this point in the history
…as' in CLI to make the package lighter
  • Loading branch information
pablofueros committed Jan 29, 2025
1 parent 658a535 commit e5dc9ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ requires-python = ">=3.12"
dependencies = [
"pandas>=2.2.3",
"plotly>=5.24.1",
"polars>=1.20.0",
"pydantic-xml>=2.14.1",
"rich>=13.9.4",
"typer>=0.15.1",
Expand Down
4 changes: 2 additions & 2 deletions src/bbrpy/cli.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pathlib
import webbrowser

import pandas as pd
import plotly.express as px
import polars as pl
import rich
import typer

Expand Down Expand Up @@ -51,7 +51,7 @@ def generate(

# Generate the battery report and extract the capacity history
battery_report = BatteryReport.generate()
history_df = pl.DataFrame([entry.model_dump() for entry in battery_report.History])
history_df = pd.DataFrame([entry.model_dump() for entry in battery_report.History])

# Generate the capacity history visualization
fig = px.line(
Expand Down
16 changes: 0 additions & 16 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e5dc9ef

Please sign in to comment.