-
-
Save Johnne32/d76e9f2abe879ac1dcaa4bad02a147ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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