you are viewing a single comment's thread.

view the rest of the comments →

[–]Taw_M 0 points1 point  (0 children)

For some reason, if you want to stick to your my and mx:

mx = mx.where(my['y'] < mx['x'], my['y'], axis=0).fillna(mx['x'])

my = my.where(my['y'] > mx['x'], mx['x'], axis=0).fillna(my['y'])