Skip to content

Commit 4bc7c56

Browse files
RossLotedlstadther
authored andcommitted
Code example correction (#2754)
1 parent f6b057a commit 4bc7c56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/example_top_artists.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Python code for the Spark job is found below.
155155
# The second field is the artist
156156
counts = streams \
157157
.map(lambda row: (row[1], 1)) \
158-
.reduceByKey(add)
158+
.reduceByKey(operator.add)
159159
160160
counts.write.option('sep', '\t').csv(output_path)
161161

0 commit comments

Comments
 (0)