rosetn commented on a change in pull request #12370: URL: https://github.com/apache/beam/pull/12370#discussion_r460339885
########## File path: website/www/site/content/en/documentation/transforms/python/aggregation/groupbykey.md ########## @@ -16,25 +16,40 @@ limitations under the License. --> # GroupByKey -<table align="left"> - <a target="_blank" class="button" - href="https://beam.apache.org/releases/pydoc/current/apache_beam.transforms.core.html#apache_beam.transforms.core.GroupByKey"> - <img src="https://beam.apache.org/images/logos/sdks/python.png" width="20px" height="20px" - alt="Pydoc" /> - Pydoc - </a> -</table> -<br><br> +{{< localstorage language language-py >}} + +{{< button-pydoc path="apache_beam.transforms.core" class="GroupByKey" >}} Takes a keyed collection of elements and produces a collection where each element consists of a key and all values associated with that key. See more information in the [Beam Programming Guide](/documentation/programming-guide/#groupbykey). ## Examples -See [BEAM-7390](https://issues.apache.org/jira/browse/BEAM-7390) for updates. -## Related transforms +In the following example, we create a pipeline with a `PCollection` of produce keyed by season. + +We use `GroupByKey` group all the produce for each season. Review comment: Missing a "to" We use `GroupByKey` *to* group all the produce for each season. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
