Spaces:
Sleeping
Sleeping
fixed line plot to bar
Browse files- eda/exploration.py +1 -2
eda/exploration.py
CHANGED
|
@@ -74,11 +74,10 @@ def run_exploration() -> None:
|
|
| 74 |
# --------------------------------------------------
|
| 75 |
if "YEAR_FILED" in cases.columns:
|
| 76 |
year_counts = cases.group_by("YEAR_FILED").agg(pl.len().alias("Count"))
|
| 77 |
-
fig2 = px.
|
| 78 |
year_counts.to_pandas(),
|
| 79 |
x="YEAR_FILED",
|
| 80 |
y="Count",
|
| 81 |
-
markers=True,
|
| 82 |
title="Cases Filed by Year",
|
| 83 |
)
|
| 84 |
fig2.update_traces(line_color="royalblue")
|
|
|
|
| 74 |
# --------------------------------------------------
|
| 75 |
if "YEAR_FILED" in cases.columns:
|
| 76 |
year_counts = cases.group_by("YEAR_FILED").agg(pl.len().alias("Count"))
|
| 77 |
+
fig2 = px.bar(
|
| 78 |
year_counts.to_pandas(),
|
| 79 |
x="YEAR_FILED",
|
| 80 |
y="Count",
|
|
|
|
| 81 |
title="Cases Filed by Year",
|
| 82 |
)
|
| 83 |
fig2.update_traces(line_color="royalblue")
|