开始使用免费开始使用

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.

本练习是课程的一部分

Data Transformation with Polars

查看课程

练习说明

  • Filter for reviews that mention "scent".

交互式实操练习

通过完成这段示例代码来试试这个练习。

# Filter for reviews containing "scent"
reviews.filter(
    pl.col("review").____.____("____")
)
编辑并运行代码