Skip to content

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

@asdf8601

Description

@asdf8601

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions