percentage match in pandas dataframe,(trace_df['ratio'] > 0).mean()