dataframe rows size code example
Example 1: Returns the number of rows in this DataFrame
# Returns the number of rows in this DataFrame
df.count()
# 2
Example 2: df length
total_rows = df.count
print total_rows +1
# Returns the number of rows in this DataFrame
df.count()
# 2
total_rows = df.count
print total_rows +1