Skip to content

Instantly share code, notes, and snippets.

@subwaymatch
Created April 25, 2024 17:47
Show Gist options
  • Save subwaymatch/405f8e2eda6e6fd00a357fe6a31c5896 to your computer and use it in GitHub Desktop.
Save subwaymatch/405f8e2eda6e6fd00a357fe6a31c5896 to your computer and use it in GitHub Desktop.
DataFrame Sample
df_campus_positive_keywords = pd.DataFrame({'campus': ['BYU', 'BYU', 'BYU', 'PSU', 'PSU', 'PSU', 'UIUC', 'UIUC', 'UIUC'],
'token': ['gym', 'pet', 'pool', 'gym', 'pet', 'pool', 'gym', 'pet', 'pool'],
'unique_frequency': [191, 35, 526, 259, 83, 263, 251, 57, 191],
'num_reviews': [5085, 5085, 5085, 4481, 4481, 4481, 5315, 5315, 5315],
'percentage': [0.0375614552605703,
0.00688298918387414,
0.10344149459193706,
0.05779959830395001,
0.018522651193929925,
0.0586922561928141,
0.04722483537158984,
0.01072436500470367,
0.03593603010348072]})
df_campus_positive_keywords
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment