def hello(zipcode): print("success!") response = '' if df is not None: response = showRatingDistribution(df, zipcode).to_json() return Response(response, mimetype='application/json', headers={ 'Cache-Control': 'no-cache', 'Access-Control-Allow-Origin': '*' })
def hello(platform): df = data.get(platform, None) print("success!") response = '' if df is not None: response = showRatingDistribution(df, platform).to_json() return Response(response, mimetype='application/json', headers={ 'Cache-Control': 'no-cache', 'Access-Control-Allow-Origin': '*' })
def hello(platform): df = data.get(platform, None) response = '' # return "Got the platform type '{}', and rating '{}'.".format(platform,rating) if df is not None: response = showRatingDistribution(df[['name', 'rating']], platform).to_json() return Response(response, mimetype='application/json', headers={ 'Cache-Control': 'no-cache', 'Access-Control-Allow-Origin': '*' })