Exemplo n.º 1
0
def listfuncs():
    """Lists functions that can be applied to a GroupBy Operation
    Example Usage:
    ./csvcli.py listfuncs
    Appliable Functions: ['npmedian', 'npsum', 'numpy', 'tanimoto']
    """

    funcs = utils.appliable_functions()
    click.echo("Appliable Functions: {funcs}".format(funcs=funcs))
Exemplo n.º 2
0
def list_apply_funcs():
    """Return a list of appliable functions
    GET /api/funcs
    ---
    responses:
        200:
            description: Returns list of appliable functions.
    """

    appliable_list = utils.appliable_functions()
    return jsonify({"funcs": appliable_list})