-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Dask dataframe isna #3294
Dask dataframe isna #3294
Changes from 9 commits
a3fc478
7f11231
4f3df24
214d5a5
48ea054
a69e797
0de127a
003ff99
fb973c0
58a04b7
0b366e2
f9617ef
2f71e0a
7e34482
c0fc19f
0fcc5f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2811,6 +2811,16 @@ def test_to_timedelta(): | |
dd.to_timedelta(ds, errors='coerce')) | ||
|
||
|
||
@pytest.mark.skipif(PANDAS_VERSION < '0.22.0', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @mrocklin, should this use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't worry about isna being deprecated. |
||
reason="No isna method") | ||
@pytest.mark.parametrize('values', [[np.NaN, 0], [1, 1]]) | ||
def test_isna(values): | ||
s = pd.Series(values) | ||
ds = dd.from_pandas(s, npartitions=2) | ||
|
||
assert_eq(pd.isna(s), dd.isna(ds)) | ||
|
||
|
||
@pytest.mark.parametrize('drop', [0, 9]) | ||
def test_slice_on_filtered_boundary(drop): | ||
# https://github.com/dask/dask/issues/2211 | ||
|
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 should be
if hasattr(pd, 'isna'):
(as seen in the travis logs).In general, I recommend trying to run the tests yourself before pushing to github. We use
py.test
for testing: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! Should be fixed now.