expresso_parser
This commit is contained in:
@@ -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"])
|
||||||
|
|||||||
Reference in New Issue
Block a user