From cca3d1d4905b671cbfbdb544cc5cc4e6ebefe948 Mon Sep 17 00:00:00 2001 From: circld Date: Wed, 28 Feb 2018 15:36:43 -0700 Subject: [PATCH] update non-working code example to use curried analogs --- doc/source/streaming-analytics.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/streaming-analytics.rst b/doc/source/streaming-analytics.rst index 9a8cdd06..ac079616 100644 --- a/doc/source/streaming-analytics.rst +++ b/doc/source/streaming-analytics.rst @@ -97,8 +97,9 @@ Then we chain them together into a single computation .. code:: - >>> pipe(accounts, groupby(get(3)), - ... valmap(compose(sum, pluck(2)))) + >>> import toolz.curried as curried + >>> pipe(accounts, curried.groupby(get(3)), + ... curried.valmap(compose(sum, pluck(2)))) {'F': 400, 'M': 400}