mod radar

This commit is contained in:
Benjamin Bertrand
2016-11-26 18:03:03 +03:00
parent 39969777d8
commit 414f411ea5
2 changed files with 6 additions and 6 deletions

View File

@@ -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,
)