What would be the best way to filter data coming from a CSV in order to show only some specific rows based on the content of a selector?

Thanks