[Numpy-svn] [numpy/numpy] 1b2d2e: ENH: add np.nanprod

GitHub noreply at github.com
Mon Jan 5 14:23:06 EST 2015


  Branch: refs/heads/master
  Home:   https://github.com/numpy/numpy
  Commit: 1b2d2e977d51414121548d4454afdf02d9def3b3
      https://github.com/numpy/numpy/commit/1b2d2e977d51414121548d4454afdf02d9def3b3
  Author: Stephan Hoyer <shoyer at climate.com>
  Date:   2015-01-05 (Mon, 05 Jan 2015)

  Changed paths:
    M doc/release/1.10.0-notes.rst
    M numpy/lib/nanfunctions.py
    M numpy/lib/tests/test_nanfunctions.py

  Log Message:
  -----------
  ENH: add np.nanprod

This PR adds an implementation of `nanprod`.

The actual function is a two-liner adapted from `nansum`. Most of this PR
consists of documentation and tests (for which I took the opportunity to do
some consolidation).

A method with the same functionality exists in pandas, and I was surprised to
discover that it's not in numpy.


  Commit: c6b8109a18e7b8e472b50713b4fc9a36fbb4de91
      https://github.com/numpy/numpy/commit/c6b8109a18e7b8e472b50713b4fc9a36fbb4de91
  Author: Charles Harris <charlesr.harris at gmail.com>
  Date:   2015-01-05 (Mon, 05 Jan 2015)

  Changed paths:
    M doc/release/1.10.0-notes.rst
    M numpy/lib/nanfunctions.py
    M numpy/lib/tests/test_nanfunctions.py

  Log Message:
  -----------
  Merge pull request #5418 from shoyer/nanprod

ENH: add np.nanprod


Compare: https://github.com/numpy/numpy/compare/c39a56a07a66...c6b8109a18e7


More information about the Numpy-svn mailing list