Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Returns the first n rows

# Returns the first n rows

df.head()
# Row(age=2, name=u'Alicz')
df.head(1)
# [Row(age=2, name=u'Alice')]
Source by spark.apache.org #
 
PREVIOUS NEXT
Tagged: #Returns #rows
ADD COMMENT
Topic
Name
3+4 =