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

Offer through API calculations using groupby. (Implement groupby in API) #1

Open
asdf8601 opened this issue Aug 11, 2017 · 0 comments

Comments

@asdf8601
Copy link
Owner

Could be a good idea implement a grupby inside of API module, this allow us to use methods on each group.

The main idea is can do:


import ineqpy as inq
data = inq.api.Survey(data, weights='w', group='county')
data.groupby(data.county).gini('income')
data.groupby(data.county).atkinson('income')

and then obtain the gini or atkinson index by county.

@asdf8601 asdf8601 assigned asdf8601 and unassigned asdf8601 Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant