[
https://issues.apache.org/jira/browse/BEAM-7389?focusedWorklogId=293360&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-293360
]
ASF GitHub Bot logged work on BEAM-7389:
----------------------------------------
Author: ASF GitHub Bot
Created on: 12/Aug/19 20:26
Start Date: 12/Aug/19 20:26
Worklog Time Spent: 10m
Work Description: davidcavazos commented on pull request #9258:
[BEAM-7389] Add code examples for KvSwap page
URL: https://github.com/apache/beam/pull/9258#discussion_r313112682
##########
File path: website/src/documentation/transforms/python/element-wise/kvswap.md
##########
@@ -19,21 +19,64 @@ limitations under the License.
-->
# Kvswap
-<table align="left">
- <a target="_blank" class="button"
+
+<script type="text/javascript">
+localStorage.setItem('language', 'language-py')
+</script>
+
+<table>
+ <td>
+ <a class="button" target="_blank"
href="https://beam.apache.org/releases/pydoc/current/apache_beam.transforms.util.html#apache_beam.transforms.util.KvSwap">
- <img src="https://beam.apache.org/images/logos/sdks/python.png"
width="20px" height="20px"
- alt="Pydoc" />
- Pydoc
+ <img src="https://beam.apache.org/images/logos/sdks/python.png"
+ width="20px" height="20px" alt="Pydoc" />
+ Pydoc
</a>
+ </td>
</table>
<br>
-Takes a collection of key-value pairs and returns a collection of key-value
pairs
+
+Takes a collection of key-value pairs and returns a collection of key-value
pairs
which has each key and value swapped.
-## Examples
-See [BEAM-7389](https://issues.apache.org/jira/browse/BEAM-7389) for updates.
+## Examplse
+
+In the following example, we create a pipeline with a `PCollection` of
key-value pairs.
+Then, we apply `Keys` to extract the keys and discarding the values.
Review comment:
Good old copy paste :)
Fixed
----------------------------------------------------------------
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 293360)
Time Spent: 39h 50m (was: 39h 40m)
> Colab examples for element-wise transforms (Python)
> ---------------------------------------------------
>
> Key: BEAM-7389
> URL: https://issues.apache.org/jira/browse/BEAM-7389
> Project: Beam
> Issue Type: Improvement
> Components: website
> Reporter: Rose Nguyen
> Assignee: David Cavazos
> Priority: Minor
> Time Spent: 39h 50m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)