Chris Grier created SPARK-4051:
----------------------------------
Summary: 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
Reporter: Chris Grier
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]