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

Fix bug in Pandas compute_up() on Broadcast exprs. #1442

Merged
merged 3 commits into from Mar 10, 2016

Conversation

kwmsmith
Copy link
Member

Adds broadcast tests for Pandas frames / series and Dask dataframes.

Adds broadcast tests for Pandas frames / series and Dask dataframes.
def test_frame_broadcast():
bcast = broadcast_collect(expr=t.amount * t.id)
result = compute(bcast, df)
assert_series_equal(df.amount * df.id, result)
Copy link
Member

Choose a reason for hiding this comment

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

can we swap the assertion to make the lhs the result and the rhs the expected? I know that this is equivalent but that pattern is more common

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@llllllllll
Copy link
Member

Thanks for the test coverage, looks good!

kwmsmith added a commit that referenced this pull request Mar 10, 2016
Fix bug in Pandas compute_up() on Broadcast exprs.
@kwmsmith kwmsmith merged commit 174293b into blaze:master Mar 10, 2016
@kwmsmith kwmsmith deleted the bugfix/broadcast-pandas branch March 10, 2016 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants