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

Move Quantity() methods to Link #91

Closed
alextanski opened this issue Oct 1, 2015 · 3 comments
Closed

Move Quantity() methods to Link #91

alextanski opened this issue Oct 1, 2015 · 3 comments
Assignees
Labels

Comments

@alextanski
Copy link
Contributor

Everything that currently happens inside the Quantity() class should in fact be based on the Link object itself to gain flexibility and get rid of the middle man.

@alextanski
Copy link
Contributor Author

Status update, ported and updated are...

  • bases can be computed as effective version on both axis [new method: _margin(axis, effective)]
  • missingfy() can be applied on both axes, base dropping works on both axes and total is correct
  • _mean() can be applied on both axes and is vectorized
  • _dispersion() stats can be applied to both axes and is vectorized
  • combine() works together with arbitrary missingfied axes, broadcasts and auto-updates bases
  • new _filter() method that can filter an existing Link on an arbitrary qp-logical condition (not completely finished for all logics, but this is straightforward)

@alextanski
Copy link
Contributor Author

There is a .swap() method in the Link class: It should by default filter the swapped Link on the replaced axis' variable answercount, like this:

link.swap(axis='y', var='q5_1')
link.filter({'q8': has_count([is_ge(1)])})

@alextanski
Copy link
Contributor Author

This can be abandoned for now and should get picked up at a later stage. The .filter() method is implemented in relation to #86 and #231.

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

No branches or pull requests

1 participant