Description
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.
Attachments
Issue Links
- duplicates
-
SPARK-7544 pyspark.sql.types.Row should implement __getitem__
- Resolved