Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
train_data.search_term=train_data.search_term.apply(clean_text)
description.product_description=description.product_description.apply(clean_text)
train_data.product_title=train_data.product_title.apply(clean_text)
train_vec=pd.merge(train_data,description,left_on='product_uid',right_on='product_uid')
train_vec.search_term=train_vec.search_term.apply(lambda x: ' '.join([correction(w) for w in x.split()]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.