Skip to content

Instantly share code, notes, and snippets.

@Johnne32
Created Nov 30, 2020
Embed
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)
review_data.shape
review_data_title.shape
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment