human
Can you show me a Python function to get the number of rows of a data frame.
assistant
Here is a Python function to get the number of rows of a data frame

import pandas as pd

def _get_num_rows(df):
    """Get the number of rows of a data frame.
    """
    return len(df)

# Enter the data frame
df = pd.DataFrame({"a": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
                    "b": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]})

# Calling the function
print((_get_num_rows(df)))

#Example Output
# 10

#Remember to inspect code for bugs.