79169812

Date: 2024-11-08 11:24:44
Score: 1.5
Natty:
Report link

A better way to do this is to use scipy.stats.mode which accepts an axis argument.

def find_mode(arr, axis):
    m = stats.mode(arr, axis=axis)
    return m[0]
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ben Silver