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)
pandas 模糊查询
最新推荐文章于 2024-03-21 07:30:00 发布