This is an automated email from the ASF dual-hosted git repository.
riteshghorse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new e4d014c47cc [Python] Fix python's Beam Programming Guide text block
for ParDo (#28077)
e4d014c47cc is described below
commit e4d014c47cc94f2a8577e2f968a19b348b502467
Author: Ritesh Ghorse <[email protected]>
AuthorDate: Mon Aug 21 13:23:46 2023 -0400
[Python] Fix python's Beam Programming Guide text block for ParDo (#28077)
* fix python guide text block
* add missing quote
* Update programming-guide.md
---
website/www/site/content/en/documentation/programming-guide.md | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/website/www/site/content/en/documentation/programming-guide.md
b/website/www/site/content/en/documentation/programming-guide.md
index bf64c65b4d1..98dd045f428 100644
--- a/website/www/site/content/en/documentation/programming-guide.md
+++ b/website/www/site/content/en/documentation/programming-guide.md
@@ -834,12 +834,18 @@ func init() {
##### 4.2.1.1. Applying ParDo {#applying-pardo}
-{{< paragraph class="language-java language-py" >}}
+{{< paragraph class="language-java">}}
Like all Beam transforms, you apply `ParDo` by calling the `apply` method on
the
input `PCollection` and passing `ParDo` as an argument, as shown in the
following example code:
{{< /paragraph >}}
+{{< paragraph class="language-py">}}
+Like all Beam transforms, you apply `ParDo` by calling the `beam.ParDo` on the
+input `PCollection` and passing the `DoFn` as an argument, as shown in the
+following example code:
+{{< /paragraph >}}
+
{{< paragraph class="language-go">}}
`beam.ParDo` applies the passed in `DoFn` argument to the input `PCollection`,
as shown in the following example code:
@@ -8159,4 +8165,4 @@ The following transforms are included in the Trasnform
service:
[DataFrame](/documentation/dsls/dataframes/overview/) transforms.
For a more comprehensive list of available transforms, see the
-[Transform
service](https://cwiki.apache.org/confluence/display/BEAM/Transform+Service)
developer guide.
\ No newline at end of file
+[Transform
service](https://cwiki.apache.org/confluence/display/BEAM/Transform+Service)
developer guide.