DataFrame.
limit
Limits the result count to the number specified.
Examples
>>> df.limit(1).collect() [Row(age=2, name='Alice')] >>> df.limit(0).collect() []
previous
pyspark.sql.DataFrame.join
next
pyspark.sql.DataFrame.localCheckpoint