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

Apache Spark commented on SPARK-4051:
-------------------------------------

User 'davies' has created a pull request for this issue:
https://github.com/apache/spark/pull/2896

> Rows in python should support conversion to dictionary
> ------------------------------------------------------
>
>                 Key: SPARK-4051
>                 URL: https://issues.apache.org/jira/browse/SPARK-4051
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 1.1.0
>            Reporter: Chris Grier
>            Assignee: Davies Liu
>
> When working with the output of a query against a sqlContext, the result a 
> Row object with fields accessible via dot notation rather than something 
> similar to a dictionary.
> The issue is that there are libraries (such as pandas and ggplot) that do not 
> know how to operate on Rows but you can supply field names for the libraries 
> to use. When the library attempts to use the row, it expects a data type like 
> a dictionary, indexable using brackets and named field i.e. obj["fieldname"].



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to