It you're into reading ancient history here is the link to the discussion
where Zachary Pincus makes the same observation and my response was to
close the PR because I could use scipy.ndimage.generic_filter, even though
at least through my eyes, my implementation was nicer.
As noted https://github.com/numpy/numpy/pull/303 a large part of this
functionality has been implemented before for numpy and didn't go anywhere
because it is already present in scipy.ndimage.
IMHO it is better suited in numpy with a better name so that people don't
miss it.
Kindest regards,
Tim