I am having a really hard time understanding how to do even basic data manipulation without iteration, so if I stop making sense, try to go easy on me.
Let's suppose I have a dataframe df
that looks like this:
f1 f2 f3 f4
1 1 2 3 'Sari'
2 2 1 4 'Sally'
3 3 0 1 'Jose'
I want to know how to get the max integer in each row. I'm fine with storing it in a new column, f5. So, perhaps code that
df['f5'] = ??? #I'm stuck...