count() method

Counts the number of rows in a dataframe.

Syntax

dataframe_name.count()

Parameters

This method does not have any parameters.

Returns

Integer (int).

Examples

Count the number of rows in an accounts receivable dataframe

accounts_receivable.count()