Skip to content

Instantly share code, notes, and snippets.

@hamletbatista
Created September 28, 2019 18:11
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 hamletbatista/5fd1503ee1b501e190a97b1ce034e494 to your computer and use it in GitHub Desktop.
Save hamletbatista/5fd1503ee1b501e190a97b1ce034e494 to your computer and use it in GitHub Desktop.
# Data taken from here: https://touringplans.com/disneyland/attractions
# Ties in attraction ratings were resolved by selecting the age group closest to the next-highest score
df['Age Group'] = ["Pre-K", "Grade School", "Seniors",
"Pre-K", "Seniors", "Seniors",
"Pre-K", "Grade School", "Over 30",
"Seniors", "Pre-K", "Pre-K",
"Teens", "Teens", "Seniors",
"Young Adults", "Young Adults", "Teens",
"Pre-K", "Pre-K"]
df['Enjoyment Score'] = df['Ride Duration'] / df['Average Wait Time'] #optimality???
df.sort_values("Enjoyment Score", ascending=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment