allows you to specify whuch rows in your table are returned by your query code example
Example: Returns all the records as a list of Row
# Returns all the records as a list of Row
df.collect()
# [Row(age=2, name=u'Alice'), Row(age=5, name=u'Bob')]