我有一个数据框列描述。我想删除文本“<;p>;”&;“<;br>;”并保留文本
Description
"<p>ID being used for RPA testing</p>"
"This NUID is used for User Acceptance Testing of the RPA solutions for mainframe provisioning (ACF2 NP10 and all IDMS lower environments)<br>"
<p>ID being used for RPA testing</p>
This NUID is used for User Acceptance Testing of the RPA solutions for mainframe provisioning (ACF2 NP10 and all IDMS lower environments)<br>
预期产量
Description
ID being used for RPA testing
This NUID is used for User Acceptance Testing of the RPA solutions for mainframe provisioning (ACF2 NP10 and all IDMS lower environments)
ID being used for RPA testing
This NUID is used for User Acceptance Testing of the RPA solutions for mainframe provisioning (ACF2 NP10 and all IDMS lower environments)
如果文本不复杂,可以使用regex删除
<
和>
之间的任何内容对于更复杂的需求,您必须深入到合适的HTML解析器(如BeautifulSoup)中来提取纯文本
相关问题 更多 >
编程相关推荐