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

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

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

Maciej Bryński commented on SPARK-10056:
----------------------------------------

[~davies]
Is there a chance that PR from https://issues.apache.org/jira/browse/SPARK-7544 will be merged to master? 

> 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
>            Priority: Minor
>
> 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