Hi,
You can use the Row Filter node and Rule-based Row Filter node to pass and block (include and exclude) based on a frequency threshold:
If you want to pass based on a frequency threshold and modify the higher/lower frequency values you can use the Rule Engine node (to a constant frequency or to some already calculated value) and the Math Formula or the Column Expressions nodes (to a formulated output frequency).
For example, in the math formula node you can use if(condition, true value, false value)
function. Where the true and false values can be some formulas or constants.