I am trying to read the dataframe line by line in a loop.
There is a data frame df['col_1', 'col_2', 'col_n'], there is also a certain function f(df) that takes one row of the dataframe as arguments.
Could somebody helps me with the code to read a dataframe line by line in a loop and apply a f() function to each row.
PS: Here, input value to the function f() must me a dataframe, because it processes the data referring to column names.
Thanks!