【发布时间】:2021-07-27 08:37:08
【问题描述】:
从Pandas DataFrame extract between one START word and multiple STOP words 开始,是否也可以将解决方案扩展到多个起始词? 示例不应按字面意思理解:
df
0 start_word1 text1 end_word1
1 start_word2 text2 end_word2
预期输出
df
0 text1
1 text2
【问题讨论】:
标签: python python-3.x pandas python-re