Skip to content

Instantly share code, notes, and snippets.

@toyeiei
Created Nov 12, 2018
Embed
What would you like to do?
US birth test function
# test function
calculate_stat(data, 0, 4) # sum births by year
calculate_stat(data, 1, 4) # sum births by month
calculate_stat(data, 2, 4) # sum births by dom
calculate_stat(data, 3, 4) # sum births by dow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment