Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 solutions, 1 with straight up python, and one using pandas with 3 lines of pretty readable code. #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bobhilt
Copy link
Contributor

@bobhilt bobhilt commented Sep 7, 2018

I've been interested in using more numpy, scipy, pandas and such for puzzles and code studies. I thought others might find this pandas example interesting, compared to the generic python solution. The groupby().first() fit the puzzle well. It could also have used other groupby options, e.g, mean(), depending on the goal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant