Untitled

 avatar
user_9601555
python
a year ago
128 B
400
Indexable
Never
import polars as pl
res_df = df.with_columns([pl.col('sentence').str.contains(keyword).alias(keyword) for keyword in keywords])