Untitled
user_9601555
python
2 years ago
128 B
427
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...
import polars as pl
res_df = df.with_columns([pl.col('sentence').str.contains(keyword).alias(keyword) for keyword in keywords])