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