Efficient Data Filtering with Conditional Deduplication in Polars