You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/09/14 16:52:25 UTC

[GitHub] [beam] smeet07 commented on a diff in pull request #23224: changes for issue #21022

smeet07 commented on code in PR #23224:
URL: https://github.com/apache/beam/pull/23224#discussion_r971072798


##########
website/www/site/content/en/documentation/programming-guide.md:
##########
@@ -3749,6 +3749,12 @@ the user ids from a `PCollection` of purchases one would write (using the `Selec
 purchases.apply(Select.fieldNames("userId"));
 {{< /highlight >}}
 
+{{< highlight py >}}
+input_pc = ... # {"userId":...,"bank": ..., "purchase_amount": ...}
+output_pc = input_pc | beam.Map(lambda item: beam.Row(ids=str(item["userId"])))                                            

Review Comment:
   Thanks for guiding ,I'll make the appropriate changes



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org