DataFrame.
count
Returns the number of rows in this DataFrame.
DataFrame
New in version 1.3.0.
Examples
>>> df.count() 2