0

我在数据框中有一些行,其中一列有#Employer Unkown#,#Radar #。我如何使用 python 数据框在数据框中找到这些。

4

1 回答 1

0
import re

matcher=re.compile(r'^#*#')
matches = [x for x in df['column'] if matcher.match(x)]
于 2020-12-28T12:56:05.933 回答