You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Davies Liu (JIRA)" <ji...@apache.org> on 2015/09/10 22:56:45 UTC

[jira] [Resolved] (SPARK-10056) PySpark Row - Support for row["columnName"] syntax

     [ https://issues.apache.org/jira/browse/SPARK-10056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davies Liu resolved SPARK-10056.
--------------------------------
       Resolution: Fixed
         Assignee: Yanbo Liang
    Fix Version/s: 1.6.0

> PySpark Row - Support for row["columnName"] syntax
> --------------------------------------------------
>
>                 Key: SPARK-10056
>                 URL: https://issues.apache.org/jira/browse/SPARK-10056
>             Project: Spark
>          Issue Type: Improvement
>          Components: PySpark
>            Reporter: Maciej BryƄski
>            Assignee: Yanbo Liang
>            Priority: Minor
>             Fix For: 1.6.0
>
>
> Right now you can get Row element:
> - by column name: row.columnName
> - by index: row[index] (where index is integer)
> My proposition is to add following syntax:
> row["columnName"]
> It will be solution similar to DataFrame behaviour and should be quite easy to implement with __getitem__ method.



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

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