Untitled
user_9601555
Python
05/14/2023 10:34 AM
128 B
464
Indexable
Never
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])