Exemplo n.º 1
0
def getSingleRadarBySector():

    survey = request.args.get('survey')
    company = request.args.get('company')
    userid = request.args.get('userid')
    r = requests.get(
        "http://127.0.0.1:5000/chartsOne?survey={}&company={}&userid={}".
        format(survey, company, userid))
    jsonres = r.json()
    df = pd.DataFrame(jsonres)

    data = cl.radarBySector(df, sectors)
    return data
Exemplo n.º 2
0
def getAllRadarBySector():

    dataframe = request.args.get('dataframe')
    df = pd.read_excel(dataframe)
    data = cl.radarBySector(df, sectors)
    return data