diff options
author | Davies Liu <davies@databricks.com> | 2014-10-24 10:48:03 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@databricks.com> | 2014-10-24 10:48:03 -0700 |
commit | d60a9d440b00beb107c1f1d7f42886c94f04a092 (patch) | |
tree | 1e65c3be4794876bf4c357410f0264921d67d27c /sql | |
parent | d2987e8f7a2cb3bf971f381399d8efdccb51d3d2 (diff) | |
download | spark-d60a9d440b00beb107c1f1d7f42886c94f04a092.tar.gz spark-d60a9d440b00beb107c1f1d7f42886c94f04a092.tar.bz2 spark-d60a9d440b00beb107c1f1d7f42886c94f04a092.zip |
[SPARK-4051] [SQL] [PySpark] Convert Row into dictionary
Added a method to Row to turn row into dict:
```
>>> row = Row(a=1)
>>> row.asDict()
{'a': 1}
```
Author: Davies Liu <davies@databricks.com>
Closes #2896 from davies/dict and squashes the following commits:
8d97366 [Davies Liu] convert Row into dict
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions