pandas 模糊查询
def search(df, column, keywords):
"""
Pandas fuzzy search
:param df: pandas dataframe
:param column: the name of column
:param keywords: the key words of your search
:return: [true, false,...,true] list
"""
return df[column].str.contains(keywords)
浙公网安备 33010602011771号