Skip to content

Instantly share code, notes, and snippets.

@Johnne32
Created November 30, 2020 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Johnne32/d76e9f2abe879ac1dcaa4bad02a147ff to your computer and use it in GitHub Desktop.
Save Johnne32/d76e9f2abe879ac1dcaa4bad02a147ff to your computer and use it in GitHub Desktop.
# 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