IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Data Transformation with Polars

Visualizza il corso

Istruzioni dell'esercizio

  • Filter for reviews that mention "scent".

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Filter for reviews containing "scent"
reviews.filter(
    pl.col("review").____.____("____")
)
Modifica ed esegui il codice