Код: Выделить всё
Exception has occurred: ColumnNotFoundError
Foo message.
Код: Выделить всё
df = df.with_columns(
pl.when(pl.col("Foo").str.contains("Foo message. Bar Message."))
.then("Foo message")
.alias("Foo_Column")
)
Подробнее здесь: https://stackoverflow.com/questions/777 ... hen-method