from pyspark.sql import Row
my_row = Row(name="Peter", age=22, location="Florida")
# Dot notation
>>> print("Name:", my_row.name)
'Name: Peter'
# Column Key
>>> print("Age:", my_row['age'])
'Age: 22'
# Index
>>> print("Location:", my_row[2])
'Location: Florida'
Declare row
object