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

ENH/API: Add where to nunique reduction #1220

Closed
wants to merge 7 commits into from

Conversation

cpcloud
Copy link
Member

@cpcloud cpcloud commented Nov 6, 2017

No description provided.

@cpcloud cpcloud self-assigned this Nov 6, 2017
@cpcloud cpcloud added feature Features or general enhancements expressions Issues or PRs related to the expression API labels Nov 6, 2017
@cpcloud cpcloud added this to the 0.13 milestone Nov 6, 2017
ibis/expr/api.py Outdated

Parameters
-----------
expr : ibis.expr.types.Expr
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to add a where parameter here.

arg, where = expr.op().args

if where is not None:
arg_formatted = translator.translate(arg.ifelse(where, None))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be where.ifelse(arg, None).

@cpcloud cpcloud closed this in 0b6aeaf Nov 22, 2017
@cpcloud cpcloud deleted the count-distinct-filter branch November 22, 2017 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expressions Issues or PRs related to the expression API feature Features or general enhancements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant