[ 
https://issues.apache.org/jira/browse/BEAM-7389?focusedWorklogId=291479&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-291479
 ]

ASF GitHub Bot logged work on BEAM-7389:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 08/Aug/19 18:02
            Start Date: 08/Aug/19 18:02
    Worklog Time Spent: 10m 
      Work Description: rosetn commented on pull request #9258: [BEAM-7389] Add 
code examples for KvSwap page
URL: https://github.com/apache/beam/pull/9258#discussion_r312170398
 
 

 ##########
 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:
   "Then, we apply `KvSwap` to swap the keys and values."
 
----------------------------------------------------------------
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: 291479)
    Time Spent: 38h 40m  (was: 38.5h)

> 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: 38h 40m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to