Skip to content

Commit 8ef7249

Browse files
committed
convert to playground example
1 parent f9bccb8 commit 8ef7249

File tree

1 file changed

+3
-11
lines changed
  • website/www/site/content/en/documentation/transforms/python/aggregation

1 file changed

+3
-11
lines changed

website/www/site/content/en/documentation/transforms/python/aggregation/cogroupbykey.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,9 @@ Then, we apply `CoGroupByKey` to join both `PCollection`s using their keys.
3838
`CoGroupByKey` expects a dictionary of named keyed `PCollection`s, and produces elements joined by their keys.
3939
The values of each output element are dictionaries where the names correspond to the input dictionary, with lists of all the values found for that key.
4040

41-
{{< highlight language="py" py="sdks/python/apache_beam/examples/snippets/transforms/aggregation/cogroupbykey.py" >}}
42-
{{< code_sample "sdks/python/apache_beam/examples/snippets/transforms/aggregation/cogroupbykey.py" cogroupbykey >}}
43-
{{< /highlight >}}
44-
45-
{{< paragraph class="notebook-skip" >}}
46-
Output:
47-
{{< /paragraph >}}
48-
49-
{{< highlight class="notebook-skip" >}}
50-
{{< code_sample "sdks/python/apache_beam/examples/snippets/transforms/aggregation/cogroupbykey_test.py" plants >}}
51-
{{< /highlight >}}
41+
{{< playground height="800px" >}}
42+
{{< playground_snippet language="py" path="SDK_PYTHON_CoGroupByKeyMerge" show="cogroupbykey" >}}
43+
{{< /playground >}}
5244

5345
## Related transforms
5446

0 commit comments

Comments
 (0)