Skip to content

Commit 85db943

Browse files
committed
Fixed flakes
1 parent 378a3d8 commit 85db943

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

streamz/dataframe/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ def random_datablock(last, now, **kwargs):
820820
Current time.
821821
freq: timedelta, optional
822822
The time interval between individual records to be returned.
823-
For good throughput, should be much smaller than the
823+
For good throughput, should be much smaller than the
824824
interval at which this function is called.
825825
826826
Returns a pd.DataFrame with random values where:
@@ -847,8 +847,8 @@ class PeriodicDataFrame(DataFrame):
847847
----------
848848
datafn: callable
849849
Callback function accepting **kwargs and returning a
850-
pd.DataFrame. kwargs will include at least
851-
'last' (time.time() datafn was last invoked), and
850+
pd.DataFrame. kwargs will include at least
851+
'last' (time.time() datafn was last invoked), and
852852
'now' (current time.time()).
853853
interval: timedelta
854854
The time interval between new dataframes.
@@ -907,7 +907,7 @@ class Random(PeriodicDataFrame):
907907
"""PeriodicDataFrame providing random values by default
908908
909909
Accepts same parameters as PeriodicDataFrame.
910-
Useful mainly for examples and docs.
910+
Useful mainly for examples and docs.
911911
912912
Example
913913
-------

streamz/tests/test_batch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ def test_periodic_dataframes():
4242
from streamz.dataframe import PeriodicDataFrame
4343
from streamz.dataframe.core import random_datapoint
4444
df = random_datapoint()
45-
assert len(df)==1
46-
45+
assert len(df) == 1
46+
4747
def callback(**kwargs):
4848
return pd.DataFrame(dict(x=50, index=[pd.Timestamp.now()]))
4949

5050
df = PeriodicDataFrame(callback, interval='20ms')
51-
assert df.tail(0).x==50
51+
assert df.tail(0).x == 50
5252
df.stop()
5353

5454

0 commit comments

Comments
 (0)