print("{:<12}".format("Scenarios:"), end="")
for k, v in w.items():
print(
- "{} {:<8}".format(" &" if LATEX else "", k),
+ "{} {:<6}".format(" &" if LATEX else "", k.replace("test", "")),
end="",
)
print("\\\\" if LATEX else "")
print("{:<12}".format("Mean:"), end="")
for k, v in w.items():
print(
- "{} {:<8.2f}".format(" &" if LATEX else "", np.mean(v)),
+ "{} {:<6.2f}".format(" &" if LATEX else "", np.mean(v)),
end="",
)
print("\\\\" if LATEX else "")
print("{:<12}".format("0.95 low:"), end="")
for k, v in w.items():
print(
- "{} {:<8.2f}".format(" &" if LATEX else "", mean_conf_int(v)[1]),
+ "{} {:<6.2f}".format(" &" if LATEX else "", mean_conf_int(v)[1]),
end="",
)
print("\\\\" if LATEX else "")
print("{:<12}".format("0.95 high:"), end="")
for k, v in w.items():
print(
- "{} {:<8.2f}".format(" &" if LATEX else "", mean_conf_int(v)[2]),
+ "{} {:<6.2f}".format(" &" if LATEX else "", mean_conf_int(v)[2]),
end="",
)
print("\\\\" if LATEX else "")
print("{:<12}".format("Median:"), end="")
for k, v in w.items():
print(
- "{} {:<8.2f}".format(" &" if LATEX else "", np.median(v)),
+ "{} {:<6.2f}".format(" &" if LATEX else "", np.median(v)),
end="",
)
print("\\\\" if LATEX else "")
print("{:<12}".format("0.95 perc.:"), end="")
for k, v in w.items():
print(
- "{} {:<8.2f}".format(
+ "{} {:<6.2f}".format(
" &" if LATEX else "",
np.percentile(v, [95])[0],
),
print("{:<12}".format("Minimum:"), end="")
for k, v in w.items():
print(
- "{} {:<8.2f}".format(" &" if LATEX else "", np.min(v)),
+ "{} {:<6.2f}".format(" &" if LATEX else "", np.min(v)),
end="",
)
print("\\\\" if LATEX else "")
print("{:<12}".format("Maximum:"), end="")
for k, v in w.items():
print(
- "{} {:<8.2f}".format(" &" if LATEX else "", np.max(v)),
+ "{} {:<6.2f}".format(" &" if LATEX else "", np.max(v)),
end="",
)
print("\\\\" if LATEX else "")