79254085

Date: 2024-12-05 09:45:30
Score: 2
Natty:
Report link

In the end I decided to use np.where() instead

simplified code:

mask = array1[:, 1] < array2[:, 1]
array = np.where(mask, array1, array2)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Vybornak2