DataFrame.
first
Returns the first row as a Row.
Row
New in version 1.3.0.
Examples
>>> df.first() Row(age=2, name='Alice')
previous
pyspark.sql.DataFrame.filter
next
pyspark.sql.DataFrame.foreach