df.size
import pandas as pd df = pd.read_csv("file path.csv") df.shape()
>>> df = pd.DataFrame({'col1': [1, 2], 'col2': [3, 4]}) >>> df.size 4