Untitled

 avatar
user_9601555
python
2 years ago
128 B
424
Indexable
import polars as pl
res_df = df.with_columns([pl.col('sentence').str.contains(keyword).alias(keyword) for keyword in keywords])
Editor is loading...