Skip to content

Instantly share code, notes, and snippets.

@panicpotatoe
Last active March 14, 2019 06:00
Show Gist options
  • Select an option

  • Save panicpotatoe/02fece4e548933d52e408999651ec9a8 to your computer and use it in GitHub Desktop.

Select an option

Save panicpotatoe/02fece4e548933d52e408999651ec9a8 to your computer and use it in GitHub Desktop.
# Create data set for pizza prices in New York
dataset_ny = [1, 2, 3, 3, 5, 6, 7, 8, 9, 11, 66]
# Finding Mean, Median, and Mode for pizza prices in New York
mean_ny = stats.mean(dataset_ny)
median_ny = stats.median(dataset_ny)
mode_ny = stats.mode(dataset_ny)
# Create data set for pizza prices in Los Angeles
dataset_la = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
# Finding Mean, Median, and Mode for pizza prices in Los Angeles
mean_la = stats.mean(dataset_la)
median_la = stats.median(dataset_la)
mode_la = stats.mode(dataset_la)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment