Код: Выделить всё
pl.Series(['abc_remove_def', 'remove_abc_def', 'abc_def_remove']).str.split('_').map_elements(lambda x: [y for y in x if y != 'remove']).list.join('_')Подробнее здесь: https://stackoverflow.com/questions/781 ... ars-column
Код: Выделить всё
pl.Series(['abc_remove_def', 'remove_abc_def', 'abc_def_remove']).str.split('_').map_elements(lambda x: [y for y in x if y != 'remove']).list.join('_')