I am new to python and I want to know how to write for loop for the function below.
def row_column_number(data):
rows, columns = data.shape
print(f'Number of rows for the dataset are {rows}')
print(f'Number of columns for the dataset are {columns}')
I tried this but this is not what I like
>> for dimensions in enumerate(data.shape):
>> print(f'Number of {dimensions}')
Number of (0, 4803)
Number of (1, 24)
How can I write a for loop for the {rows, columns}
variable above.
Number of {for-loop variable} for the dataset are {for-loop value}