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