mod radar
This commit is contained in:
parent
39969777d8
commit
414f411ea5
|
@ -31,8 +31,8 @@ texenv = jinja2.Environment(
|
|||
from .filters import includegraphics
|
||||
texenv.filters['includegraphics'] = includegraphics
|
||||
|
||||
from notes_tools.tools.marks_plottings import comp_radar, marks_hist
|
||||
texenv.filters['comp_radar'] = comp_radar
|
||||
from notes_tools.tools.marks_plottings import radar_on, marks_hist
|
||||
texenv.filters['radar_on'] = radar_on
|
||||
texenv.filters['marks_hist'] = marks_hist
|
||||
|
||||
def feed_template(target, datas, template):
|
||||
|
|
|
@ -5,15 +5,15 @@ from .plottings import radar_graph
|
|||
import pandas as pd
|
||||
import numpy as np
|
||||
|
||||
def comp_radar(df, optimum = None):
|
||||
""" Plot the radar graph concerning "Competence" column of the df
|
||||
def radar_on(df, index, optimum = None):
|
||||
""" Plot the radar graph concerning index column of the df
|
||||
|
||||
:param df: DataFrame with "Competence", "Normalized"
|
||||
:param df: DataFrame with index and "Normalized" column
|
||||
:returns: exes with radar plot
|
||||
|
||||
"""
|
||||
comp_pt = pd.pivot_table(df,
|
||||
index = ["Competence"],
|
||||
index = [index],
|
||||
values = ["Normalized"],
|
||||
aggfunc=np.mean,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue