Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Limits the result count to the number specified

# Limits the result count to the number specified

df.limit(1).collect()
# [Row(age=2, name=u'Alice')]
df.limit(0).collect()
# []
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #Limits #result #count #number
ADD COMMENT
Topic
Name
5+8 =