Skip to content

Commit

Permalink
Merge pull request #16413 from blais/master
Browse files Browse the repository at this point in the history
  • Loading branch information
aaltay authored Jan 14, 2022
2 parents 0a220a1 + cb08343 commit 8724555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdks/python/apache_beam/examples/wordcount.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def run(argv=None, save_main_session=True):
counts = (
lines
| 'Split' >> (beam.ParDo(WordExtractingDoFn()).with_output_types(str))
| 'PairWIthOne' >> beam.Map(lambda x: (x, 1))
| 'PairWithOne' >> beam.Map(lambda x: (x, 1))
| 'GroupAndSum' >> beam.CombinePerKey(sum))

# Format the counts into a PCollection of strings.
Expand Down

0 comments on commit 8724555

Please sign in to comment.