expresso_parser

This commit is contained in:
Your Name
2026-03-27 14:01:33 +00:00
parent 56c99354f4
commit 38d213fdf4
+6
View File
@@ -118,6 +118,12 @@ df.to_csv(OUTPUT, index=False)
print(f"✅ Saved {len(df)} rows → {OUTPUT}") print(f"✅ Saved {len(df)} rows → {OUTPUT}")
print(f"⚠️ Skipped lines: {errors}") print(f"⚠️ Skipped lines: {errors}")
print("Games:", len(df))
print("Total profit:", df["profit"].sum())
print("ROI:", df["profit"].sum() / df["buy_in"].sum())
print("Win rate:", (df["position"] == "1").mean())
print("ITM:", (df["prize"] > 0).mean())
# === GRAPH === # === GRAPH ===
plt.figure() plt.figure()
plt.plot(df["datetime"], df["cum_profit"]) plt.plot(df["datetime"], df["cum_profit"])