Can make term bilan!!!!
This commit is contained in:
@@ -45,6 +45,26 @@ def marks_hist(df):
|
||||
|
||||
return ax
|
||||
|
||||
def parallele_on(df, index, student=None):
|
||||
""" Plot parallele one line by student
|
||||
|
||||
:param df: TODO
|
||||
:param index: TODO
|
||||
:returns: TODO
|
||||
|
||||
"""
|
||||
pt = pd.pivot_table(df,
|
||||
index = [index],
|
||||
values = ["Normalized"],
|
||||
columns = ["Eleve"],
|
||||
aggfunc = np.mean,
|
||||
)["Normalized"]
|
||||
ax = pt.plot(color="b", figsize=(10,5), legend=False)
|
||||
pt.T.describe().T[["min", "25%","50%", "75%", "max"]].plot(ax=ax,
|
||||
kind='area', stacked=False, alpha=0.2)
|
||||
if not student is None:
|
||||
pt.ix[:,student].plot(ax=ax, color="r")
|
||||
return ax
|
||||
|
||||
|
||||
# -----------------------------
|
||||
|
||||
Reference in New Issue
Block a user