def get_results_df(db, rev):
 bench = DataFrame(db.get_benchmarks())
 results = DataFrame(map(list, db.get_rev_results(rev).values()))
 results.columns = db._results.c.keys()
 results = results.join(bench['name'], on='checksum').set_index('checksum')
 return results

def get_results_df ( db , rev ) : bench = DataFrame ( db . get_benchmarks ( ) ) results = DataFrame ( map ( list , db . get_rev_results ( rev ) . values ( ) ) ) results . columns = db . _results . c . keys ( ) results = results . join ( bench [ 'name' ] , on = 'checksum' ) . set_index ( 'checksum' ) return results
takes a git commit hash and returns a dataframe of benchmark results .