1

Trying to remove these stop words when they are surrounded by a word boundary. It's not working, any ideas?

stop_words = ['industries','inc','cor','enterprises','international','studios','llc','ltd','systems','housewares','incorporation','corporation','electronics','group','usa', 'entertainment','distributors',',','exclusive','artist','illustrator', 'actor', 'director', 'director','editor', 'translator', 'creator', 'photographer', 'ntributor','tm','writer','publisher','producer', 'performer', 'pl', 'author','\(\)', 'co', 'announcement']

for i in stop_words:
    df_input['clean_brand'] = df_input.clean_brand.replace('\b%s\b' %i,'', 
    regex=True)
FThompson
  • 28,352
  • 13
  • 60
  • 93
ictoaurn
  • 11
  • 1

0 Answers0