79463444

Date: 2025-02-24 12:01:16
Score: 3.5
Natty:
Report link

Just use convolve and mean:

out = np.convolve(
    np.mean(x, axis=1),
    np.ones(3)/3, mode='valid',
)

P.S. Maybe [5998], not [5997]?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: netay