Exemplo n.º 1
0
def test_restaurant_grades(df_resturant,camis_id):   
    '''
    It is a function to calculate the value for each restautant 
     '''
    df_perresturant=df_resturant.ix[camis_id]
   
    df = list(df_perresturant['GRADE'])
   
    return test_grades(df)
Exemplo n.º 2
0
def test_restaurant_grades(df_resturant,camis_id):   
    # this function returns value for each resturant with function test_grades
    df_eachresturant=df_resturant.ix[camis_id]
    df = list(df_eachresturant['GRADE'])
    return test_grades(df)