Searching text
You're continuing to analyze the beauty product reviews dataset. The marketing team is launching a new perfume line and wants to understand what customers say about scents in existing products.
The reviews DataFrame is available with 5 rows printed to preview.
This exercise is part of the course
Data Transformation with Polars
Exercise instructions
- Filter for reviews that mention
"scent".
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Filter for reviews containing "scent"
reviews.filter(
pl.col("review").____.____("____")
)