Skip to content

Commit 4f68af8

Browse files
author
Chinmay Chandak
committed
2 parents cf4801d + 14acd8a commit 4f68af8

File tree

4 files changed

+2
-4
lines changed

4 files changed

+2
-4
lines changed

dask-worker-space/global.lock

Whitespace-only changes.

dask-worker-space/purge.lock

Whitespace-only changes.

streamz/dataframe/aggregations.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def diff_loc(dfs, new, window=None):
204204
dfs = deque(dfs)
205205
dfs.append(new)
206206
mx = pd.Timestamp(max(df.index.max() for df in dfs))
207-
mn = pd.Timestamp(mx) - window
207+
mn = mx - window
208208
old = []
209209
while pd.Timestamp(dfs[0].index.min()) < mn:
210210
o = dfs[0].loc[:mn]
@@ -348,8 +348,6 @@ def windowed_groupby_accumulator(acc, new, diff=None, window=None, agg=None, gro
348348
for o, og in zip(old, old_groupers):
349349
if 'groupers' in acc:
350350
assert len(o) == len(og)
351-
# if hasattr(og, 'index'):
352-
# assert (o.index == og.index).all()
353351
if len(o):
354352
state, result = agg.on_old(state, o, grouper=og)
355353
size_state, _ = size.on_old(size_state, o, grouper=og)

streamz/dataframe/tests/test_cudf_dataframes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def client():
3232
client.close()
3333

3434

35-
@pytest.fixture(params=["core", "dask"])
35+
@pytest.fixture(params=['core', 'dask'])
3636
def stream(request, client): # flake8: noqa
3737
if request.param == "core":
3838
return Stream()

0 commit comments

Comments
 (0)