How to delete words from a dataframe column that are present in dictionary in Pandas
问题 An extension to : Removing list of words from a string I have following dataframe and I want to delete frequently occuring words from df.name column: df : name Bill Hayden Rock Clinton Bill Gates Vishal James James Cameroon Micky James Michael Clark Tony Waugh Tom Clark Tom Bill Avinash Clinton Shreyas Clinton Ramesh Clinton Adam Clark I'm creating a new dataframe with words and their frequency with following code : df = pd.DataFrame(data.name.str.split(expand=True).stack().value_counts()) df