You should pass in a value of _ for the axis argument to the Pandas apply method to apply the function to each row.
0
row
col
1