Describ manip in hist_boxplot
This commit is contained in:
parent
15cf2002ab
commit
c87dba57b5
@ -74,7 +74,7 @@ def hist_boxplot(df, kwargs_hist=[], kwargs_box=[]):
|
||||
marks_hist(df, ax = ax_hist, rwidth=0.9)
|
||||
|
||||
ev_desc = df["Mark"].describe()
|
||||
m = ev_desc["mean"]
|
||||
m = round(ev_desc["mean"], 1)
|
||||
|
||||
ax_hist.plot([m,m], ax_hist.get_ylim())
|
||||
ax_hist.annotate(round(ev_desc["mean"],1),
|
||||
@ -83,7 +83,7 @@ def hist_boxplot(df, kwargs_hist=[], kwargs_box=[]):
|
||||
df["Mark"].plot.box(ax = ax_box, vert=False, widths = 0.6)
|
||||
ax_box.set_yticklabels("")
|
||||
for e in ["min", "25%", "50%", "75%", "max"]:
|
||||
ax_box.annotate(ev_desc[e],
|
||||
ax_box.annotate(round(ev_desc[e], 1),
|
||||
xy=(ev_desc[e] - 0.2, ax_box.get_ylim()[1]))
|
||||
|
||||
return f, (ax_hist, ax_box)
|
||||
|
Loading…
Reference in New Issue
Block a user