Skip to content

Instantly share code, notes, and snippets.

Created Nov 30, 2020
What would you like to do?
# seperating the reviews and the titles and dropping the missing rows seperately so that we don't have unequal shapes of rows.
review_data_title = review_df['review_comment_title']
review_data = review_df.drop(['review_comment_title'],axis=1)
# Dropping NaN values
review_data = review_data.dropna()
review_data_title = review_data_title.dropna()
# Resetting the reviews index and visualizing the data
review_data = review_data.reset_index(drop=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment