How to find the max from each row in Python and store it in a NumPy array or Pandas DataFrame and store it in a NumPy array, i.e. the output below?
0.511474 0.488526
0.468783 0.531217
0.35111 0.64889
0.594834 0.405166
Output:
0.511474
0.531217
0.64889
0.594834
df.max(axis=1).values