app.py
def staterisks():
    """Return a list of sample names."""
    # Use Pandas to perform the sql query
    stmt = db.session.query(risk_data).statement
    df = pd.read_sql_query(stmt, db.session.bind)

    # Return a list of the column names (sample names)
    return jsonify(list(df.columns)[:])
Return a list of sample names.
Return a list of sample names.
Return a list of sample names .
def staterisks():
    stmt = db.session.query(risk_data).statement
    df = pd.read_sql_query(stmt, db.session.bind)
    return jsonify(list(df.columns)[:])
def staterisks ( ) : stmt = db . session . query ( risk_data ) . statement df = pd . read_sql_query ( stmt , db . session . bind ) return jsonify ( list ( df . columns ) [ : ] )
Return a list of sample names.
Return a list of sample names .
"""Return a list of sample names.""" # Use Pandas to perform the sql query # Return a list of the column names (sample names)