rshamunov commented on code in PR #26933:
URL: https://github.com/apache/beam/pull/26933#discussion_r1222670548


##########
website/www/site/content/en/documentation/transforms/python/aggregation/min.md:
##########
@@ -32,33 +32,17 @@ Then, we get the element with the minimum value in 
different ways.
 
 We use `Combine.Globally()` to get the minimum element from the *entire* 
`PCollection`.
 
-{{< highlight language="py" 
file="sdks/python/apache_beam/examples/snippets/transforms/aggregation/min_globally.py"
 >}}
-{{< code_sample 
"sdks/python/apache_beam/examples/snippets/transforms/aggregation/min_globally.py"
 min_globally >}}
-{{< /highlight >}}
-
-{{< paragraph class="notebook-skip" >}}
-Output:
-{{< /paragraph >}}
-
-{{< highlight class="notebook-skip" >}}
-{{< code_sample 
"sdks/python/apache_beam/examples/snippets/transforms/aggregation/min_test.py" 
min_element >}}
-{{< /highlight >}}
+{{< playground height="700px" >}}
+{{< playground_snippet language="py" path="SDK_PYTHON_MinGlobally" 
show="min_globally" >}}
+{{< /playground >}}
 
 ### Example 2: Minimum elements for each key
 
 We use `Combine.PerKey()` to get the minimum element for each unique key in a 
`PCollection` of key-values.
 
-{{< highlight language="py" 
file="sdks/python/apache_beam/examples/snippets/transforms/aggregation/min_per_key.py"
 >}}
-{{< code_sample 
"sdks/python/apache_beam/examples/snippets/transforms/aggregation/min_per_key.py"
 min_per_key >}}
-{{< /highlight >}}
-
-{{< paragraph class="notebook-skip" >}}
-Output:
-{{< /paragraph >}}
-
-{{< highlight class="notebook-skip" >}}
-{{< code_sample 
"sdks/python/apache_beam/examples/snippets/transforms/aggregation/min_test.py" 
elements_with_min_value_per_key >}}
-{{< /highlight >}}
+{{< playground height="700px" >}}
+{{< playground_snippet language="py" path="SDK_PYTHON_MaxPerKey" 
show="min_per_key" >}}

Review Comment:
   MinPerKey



-- 
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]

Reply via email to