-
-
Save amankharwal/0e4c9d14be4c9b8bb9c498372a5c652f 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
# Donald Trump | |
np.random.seed(10) | |
remove_n =324 | |
drop_indices = np.random.choice(trump_reviews.index, remove_n, replace=False) | |
df_subset_trump = trump_reviews.drop(drop_indices) | |
print(df_subset_trump.shape) | |
# Joe Biden | |
np.random.seed(10) | |
remove_n =31 | |
drop_indices = np.random.choice(biden_reviews.index, remove_n, replace=False) | |
df_subset_biden = biden_reviews.drop(drop_indices) | |
print(df_subset_biden.shape) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment