CommencerCommencez gratuitement

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.

Cet exercice fait partie du cours

<cours>Data Transformation with Polars</cours>
Voir le cours

Instructions de l’exercice

  • Filter for reviews that mention "scent".

Exercice interactif pratique

Essayez cet exercice en complétant ce code d’exemple.

# Filter for reviews containing "scent"
reviews.filter(
    pl.col("review").____.____("____")
)
Modifier et exécuter le code