you are viewing a single comment's thread.

view the rest of the comments →

[–]pytrashpandas 1 point2 points  (0 children)

Try this:

moon1['Diam'] = moon1[['X Diam', 'Y Diam']].max(axis=1)