mirror of
https://github.com/PR0M3TH3AN/python_charts.git
synced 2026-10-27 08:50:39 +00:00
Fix null handling in bitcoin_m2_chart
This commit is contained in:
1 parent
0333ce85cb
commit
c0cd1fb645
1 file changed
+6
@@ -161,6 +161,12 @@ def main(argv: list[str] | None = None) -> plt.Figure:
|
||||
raise SystemExit(1)
|
||||
|
||||
btc, m2 = fetch_series(start_dt, end_dt, args.btc_series, args.m2_series, args.db)
|
||||
|
||||
# ─── Drop any rows where the FRED tables had NULLs in "value" ──────────────────
|
||||
btc = btc.dropna(subset=["value"])
|
||||
m2 = m2.dropna(subset=["value"])
|
||||
# ────────────────────────────────────────────────────────────────────────────────
|
||||
|
||||
validate_series(btc, m2, args.btc_series, args.m2_series)
|
||||
fig = plot_bitcoin_m2(
|
||||
btc,
|
||||
|
||||
Reference in new issue
Block a user