Skip to content

Commit 54071ea

Browse files
author
Martin Durant
committed
small simplify
1 parent 2ef3058 commit 54071ea

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

streamz/dataframe/core.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,9 +892,7 @@ def __init__(self, datafn=random_datablock, interval='500ms', dask=False,
892892
self.continue_ = [False] # like the oppose of self.stopped
893893
self.kwargs = kwargs
894894

895-
stream = self.source.map(
896-
lambda x, continue_=self.continue_: datafn(continue_=continue_, **x, **kwargs)
897-
)
895+
stream = self.source.map(lambda x: datafn(**x, **kwargs))
898896
example = datafn(last=pd.Timestamp.now(), now=pd.Timestamp.now(), **kwargs)
899897

900898
super(PeriodicDataFrame, self).__init__(stream, example)

0 commit comments

Comments
 (0)