Created
September 28, 2019 18:11
-
-
Save hamletbatista/5fd1503ee1b501e190a97b1ce034e494 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
# 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