【发布时间】:2018-05-01 02:00:09
【问题描述】:
您好,我正在尝试获取包含特定单词的数据框的列名,
例如: 我有一个数据框,
NA good employee
Not available best employer
not required well manager
not eligible super reportee
my_word=["well"]
如何检查df中是否存在“well”以及具有“well”的列名
提前致谢!
【问题讨论】:
-
只有一个字?
-
不,有时不止一个
-
而且应该是子串?
-
是的,字符串列表
标签: python pandas dataframe data-analysis