Use predicate function to filter rows in CSV files