[ 
https://issues.apache.org/jira/browse/SPARK-26623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16743652#comment-16743652
 ] 

Anubhav Jain commented on SPARK-26623:
--------------------------------------

Input DataFrame:
{code:java}
+-----+-----+-----+-------+
|  s  |col_1|col_2|col_...|
+-----+-------------------+
| f1  |  0.0|  0.6|  ...  |
| f2  |  0.6|  0.7|  ...  |
| f3  |  0.5|  0.9|  ...  |
|  ...|  ...|  ...|  ...  |
{code}
Output Dataframe:
{code:java}
+-------+-----+-----+-------+------+
|  s    | f1  | f2  | f3    |   ...|
+-------+-------------------+------+
|col_1  |  0.0|  0.6|  0.5  |   ...|
|col_2  |  0.6|  0.7|  0.9  |   ...|
|col_...|  ...|  ...|  ...  |   ...|
{code}
 

> Need a transpose function 
> --------------------------
>
>                 Key: SPARK-26623
>                 URL: https://issues.apache.org/jira/browse/SPARK-26623
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Anubhav Jain
>            Priority: Minor
>
> Can we aspect a transpose function which can be used to transpose a dataframe 
> or dataset  in pyspark . 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to