From 8ef72492b5ce84a9bfb32ca552a294fefe210325 Mon Sep 17 00:00:00 2001 From: Derrick Williams Date: Fri, 12 Dec 2025 19:34:49 +0000 Subject: [PATCH] convert to playground example --- .../transforms/python/aggregation/cogroupbykey.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/website/www/site/content/en/documentation/transforms/python/aggregation/cogroupbykey.md b/website/www/site/content/en/documentation/transforms/python/aggregation/cogroupbykey.md index d5dac4ed9d73..b8594823d7ae 100644 --- a/website/www/site/content/en/documentation/transforms/python/aggregation/cogroupbykey.md +++ b/website/www/site/content/en/documentation/transforms/python/aggregation/cogroupbykey.md @@ -38,17 +38,9 @@ Then, we apply `CoGroupByKey` to join both `PCollection`s using their keys. `CoGroupByKey` expects a dictionary of named keyed `PCollection`s, and produces elements joined by their keys. 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. -{{< highlight language="py" py="sdks/python/apache_beam/examples/snippets/transforms/aggregation/cogroupbykey.py" >}} -{{< code_sample "sdks/python/apache_beam/examples/snippets/transforms/aggregation/cogroupbykey.py" cogroupbykey >}} -{{< /highlight >}} - -{{< paragraph class="notebook-skip" >}} -Output: -{{< /paragraph >}} - -{{< highlight class="notebook-skip" >}} -{{< code_sample "sdks/python/apache_beam/examples/snippets/transforms/aggregation/cogroupbykey_test.py" plants >}} -{{< /highlight >}} +{{< playground height="800px" >}} +{{< playground_snippet language="py" path="SDK_PYTHON_CoGroupByKeyMerge" show="cogroupbykey" >}} +{{< /playground >}} ## Related transforms