numeraire_graphics.plot_metric_by#

numeraire_graphics.plot_metric_by(results: DataFrame, *, metric: str, x: str = 'method') plotnine.ggplot[source]#

A bar chart of a summary metric across a grouping column x (method, universe, …).

Filters results to the scalar metric (one row per group, e.g. "sharpe") and draws geom_col. When a confidence interval is derivable — explicit ci_low/ci_high, a standard-error column se, or repeated rows per group — it is added as geom_errorbar whiskers; otherwise the bars stand plain. A zero reference line anchors signed metrics.