human
Percentage match in pandas Dataframe
assistant
Here is some code to get proportion of rows in dataframe `trace_df` whose values for column `ratio` are greater than 0

(trace_df['ratio'] > 0).mean()

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.