df = pd.DataFrame({"Letters": ["a", "b", "c"], "Numbers": [1, 2, 3]}) index = df.index number_of_rows = len(index)