Percentage match in pandas Dataframe,(trace_df['ratio'] > 0).mean()