Skip to content

Commit 94e52b4

Browse files
author
chinmaychandak
committed
cudf tests for rolling aggregations
1 parent 3cd3498 commit 94e52b4

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

streamz/dataframe/tests/dask-worker-space/global.lock

Whitespace-only changes.

streamz/dataframe/tests/dask-worker-space/purge.lock

Whitespace-only changes.

streamz/dataframe/tests/test_cudf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
Tests for cudf DataFrame
3-
All these tests are taken from test_dataframes module in the same folder.
4-
Some of these tests pass with cudf as they are, and others are marked xfail
5-
where a pandas like method is not implemented yet in cudf.
6-
But these tests should pass as cudf implement more pandas like methods.
2+
Tests for cudf DataFrames:
3+
All tests have been cloned from the test_dataframes module in the same folder.
4+
Some of these tests pass with cudf, and others are marked with xfail
5+
where a pandas-like method is not yet implemented in cudf.
6+
But these tests should pass as and when cudf rolls out more pandas-like methods.
77
"""
88
from __future__ import division, print_function
99

streamz/dataframe/tests/test_dataframes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ def test_attributes():
6969
df = pd.DataFrame({'x': [1, 2, 3], 'y': [4, 5, 6]})
7070
sdf = DataFrame(example=df)
7171

72-
assert 'x' in dir(sdf)
73-
assert 'z' not in dir(sdf)
72+
assert getattr(sdf,'x',-1) != -1
73+
assert getattr(sdf,'z',-1) == -1
7474

7575
sdf.x
7676
with pytest.raises(AttributeError):

0 commit comments

Comments
 (0)