Adding Geometric Mean to Numpy
Dear Numpy-developers, I wanted to enquire, whether there is interest to add a geometric mean function to numpy. I opened a PR <https://github.com/numpy/numpy/pull/31394> but it was closed, because new features should be routed through the mailing list first. Please apologise my mistake. I ask again to consider the proposal. I wanted to use this function recently during analysis of a machine-learning model, and noticed its absence in numpy. I believe despite its simplicity, this function would serve a a case in numpy. Kind regards Siemen Aulich
On Thu, May 7, 2026 at 8:27 AM Siemen Aulich via NumPy-Discussion < numpy-discussion@python.org> wrote:
Dear Numpy-developers,
I wanted to enquire, whether there is interest to add a geometric mean function to numpy. I opened a PR <https://github.com/numpy/numpy/pull/31394> but it was closed, because new features should be routed through the mailing list first.
Please apologise my mistake. I ask again to consider the proposal. I wanted to use this function recently during analysis of a machine-learning model, and noticed its absence in numpy.
I believe despite its simplicity, this function would serve a a case in numpy.
You can see the previous discussion here: https://github.com/numpy/numpy/issues/14985 Since it's available in scipy, most maintainers don't feel a need for it to be in numpy. It's a judgment call as to what remains in scipy and what gets pushed down into numpy, and everyone is free to have their judgment go either way, but I don't think the opinion of the maintainers has drifted much from the last time this was discussed. -- Robert Kern
participants (2)
-
Robert Kern -
Siemen Aulich