I’m trying to get the number of rows of dataframe df with Pandas, and here is my code.
total_rows = df.count print total_rows + 1
total_rows = df['First_column_label'].count print total_rows + 1
Both the code snippets give me this error:
TypeError: unsupported operand type(s) for +: ‘instancemethod’ and ‘int’