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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]