-
Notifications
You must be signed in to change notification settings - Fork 389
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
Add some of the lowhanging fruit from dask.dataframe #1317
Conversation
def compute_up(expr, data, **kwargs): | ||
values = [compute(val, {expr._child: data}) for val in expr.values] | ||
if expr.keepdims: | ||
return DataFrame([values], columns=expr.fields) | ||
if isinstance(data, Dataframe): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could be type(data)(...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is also a typo Dataframe
should be DataFrame
... i think type(self)(...)
would solve the problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that is much better.
looks like dask dataframes are missing a shape attribute ... does that even make sense for that object? |
No, dask.dataframes do not know their own length, except through computation. |
@cowlicks You'll probably have to implement a new dispatched version of those expressions. |
@cowlicks You could probably do |
2cb3a94
to
238c963
Compare
The cost of |
@mrocklin I'll leave it out then. |
I'd be okay with leaving out |
@cowlicks On second thought, I still think |
@cpcloud any idea why this call to count does not dispatch to here? |
because the test is operating on a |
This is not comprehensive, but includes a lot of easy stuff from dask dataframe. I believe the tests cover all the added |
@cowlicks can you add a release note in |
Added release notes. Merging soon unless there are further comments. |
Add some of the lowhanging fruit from dask.dataframe
No description provided.