<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/numpy.git/numpy/lib/nanfunctions.py, branch maintenance/1.8.x</title>
<subtitle>github.com: numpy/numpy.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/'/>
<entry>
<title>BUG: incorrect argument order to _copyto in in np.nanmax, np.nanmin</title>
<updated>2014-08-04T21:43:41+00:00</updated>
<author>
<name>Marten van Kerkwijk</name>
<email>mhvk@astro.utoronto.ca</email>
</author>
<published>2014-04-20T20:47:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=3841c86b6a9bd84cca01c1eadbaa492067e1f4ee'/>
<id>3841c86b6a9bd84cca01c1eadbaa492067e1f4ee</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BUG: Refactor nanfunctions to behave as agreed on for 1.8.</title>
<updated>2013-10-05T17:03:29+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-10-04T19:49:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=6acb5000baa4709a8557e3359b51024216503bd3'/>
<id>6acb5000baa4709a8557e3359b51024216503bd3</id>
<content type='text'>
    Deal with subclasses of ndarray, like pandas.Series and matrix.

        Subclasses may not define the new keyword keepdims or deal
        gracefully with ufuncs in all their forms. This is solved by
        throwing the problem onto the np.sum, np.any, etc. functions
        that have ugly hacks to deal with the problem.

    Settle handling of all-nan slices.

        nanmax, nanmin -- Raise warning, return NaN for slice.
        nanargmax, nanargmin -- Raise ValueError.
        nansum -- Return NaN for slice. Will change in 1.9.0.
        nanmean, nanvar, nanstd -- Raise warning, return NaN for slice.

    Make NaN functions work for scalar arguments.

        This may seem silly, but it removes a check for special cases.

    Update tests

        Deal with new all-nan handling.
        Test with matrix class as example of subclass without keepdims.
        Test with scalar arguments.

    Fix nanvar issue reported in #3860.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    Deal with subclasses of ndarray, like pandas.Series and matrix.

        Subclasses may not define the new keyword keepdims or deal
        gracefully with ufuncs in all their forms. This is solved by
        throwing the problem onto the np.sum, np.any, etc. functions
        that have ugly hacks to deal with the problem.

    Settle handling of all-nan slices.

        nanmax, nanmin -- Raise warning, return NaN for slice.
        nanargmax, nanargmin -- Raise ValueError.
        nansum -- Return NaN for slice. Will change in 1.9.0.
        nanmean, nanvar, nanstd -- Raise warning, return NaN for slice.

    Make NaN functions work for scalar arguments.

        This may seem silly, but it removes a check for special cases.

    Update tests

        Deal with new all-nan handling.
        Test with matrix class as example of subclass without keepdims.
        Test with scalar arguments.

    Fix nanvar issue reported in #3860.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Use a.sum(...) rather than np.add.reduce(a,...)  in nansum.</title>
<updated>2013-10-02T02:31:52+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-10-01T16:39:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=f25a6549f4c9278c5732448634360e0858d2f39b'/>
<id>f25a6549f4c9278c5732448634360e0858d2f39b</id>
<content type='text'>
Pandas has a work around for the first case, but not the second.

Closes #3849.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pandas has a work around for the first case, but not the second.

Closes #3849.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Move FutureWarning in nansum.</title>
<updated>2013-09-14T17:19:21+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-09-14T17:19:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=7206b1dbf56a91a3cf6086d0e62ee805d6c0b6df'/>
<id>7206b1dbf56a91a3cf6086d0e62ee805d6c0b6df</id>
<content type='text'>
Currently a FutureWarning about the sum of empty slices changing to zero
is always raised. Instead make it depend on the actual occurrence of an
empty slice.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently a FutureWarning about the sum of empty slices changing to zero
is always raised. Instead make it depend on the actual occurrence of an
empty slice.
</pre>
</div>
</content>
</entry>
<entry>
<title>DOC: Various fixes.</title>
<updated>2013-08-14T21:52:29+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-08-13T05:31:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=dc73e1b104cf59f936e3c2bb5cfc3c0e147f99de'/>
<id>dc73e1b104cf59f936e3c2bb5cfc3c0e147f99de</id>
<content type='text'>
Fix typos and clarify some explanations. Document the changes in the return
values of nanargmin and nanargmax for all-NaN slices in the 1.8.0 release
notes.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix typos and clarify some explanations. Document the changes in the return
values of nanargmin and nanargmax for all-NaN slices in the 1.8.0 release
notes.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Refactor nanfunctions.</title>
<updated>2013-08-13T04:33:56+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-06-23T21:47:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=c7dd1e5295fcc0218bab764185ff047ee7057c77'/>
<id>c7dd1e5295fcc0218bab764185ff047ee7057c77</id>
<content type='text'>
nanmax, nanmin
--------------
Add out and keepdims keywords.

nanargmin, nanargmax
--------------------
A NanWarning is raised if an all NaN slice detected. For all such
slices np.iingo(np.intp).min is returned as the index value.

nansum
------
The keywords dtype, out, and keepdims are added.

A FutureWarning is raised, as in the future the mean of an empty
slice after NaN replacement will be 0 instead of the current NaN.

nanmean, nanvar, nanstd
-----------------------
For all, if the input array is of inexact type then the dtype and out
parameters must be of inexact type if specified.  That insures that NaNs
can be returned when appropriate.

The nanmean function detects empty slices after NaN replacement and
raises a NanWarning. NaN is returned as the value for all such slices.

The nanmean and nanstd functions detect degrees of freedom &lt;= 0 after
NaN replacement and raise a NanWarning. NaN is returned as the value for
all such slices.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
nanmax, nanmin
--------------
Add out and keepdims keywords.

nanargmin, nanargmax
--------------------
A NanWarning is raised if an all NaN slice detected. For all such
slices np.iingo(np.intp).min is returned as the index value.

nansum
------
The keywords dtype, out, and keepdims are added.

A FutureWarning is raised, as in the future the mean of an empty
slice after NaN replacement will be 0 instead of the current NaN.

nanmean, nanvar, nanstd
-----------------------
For all, if the input array is of inexact type then the dtype and out
parameters must be of inexact type if specified.  That insures that NaNs
can be returned when appropriate.

The nanmean function detects empty slices after NaN replacement and
raises a NanWarning. NaN is returned as the value for all such slices.

The nanmean and nanstd functions detect degrees of freedom &lt;= 0 after
NaN replacement and raise a NanWarning. NaN is returned as the value for
all such slices.
</pre>
</div>
</content>
</entry>
<entry>
<title>MAINT: Separate nan functions into their own module.</title>
<updated>2013-08-13T04:33:55+00:00</updated>
<author>
<name>Charles Harris</name>
<email>charlesr.harris@gmail.com</email>
</author>
<published>2013-06-21T02:44:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/numpy.git/commit/?id=fcb0fef5c673ed0a5442b18bcd8c391907b4f9a7'/>
<id>fcb0fef5c673ed0a5442b18bcd8c391907b4f9a7</id>
<content type='text'>
New files lib/nanfunctions.py and lib/tests/test_nanfunctions.py are
added and both the previous and new nan functions and tests are moved
into them.

The existing nan functions moved from lib/function_base are:

    nansum, nanmin, nanmax, nanargmin, nanargmax

The added nan functions moved from core/numeric are:

    nanmean, nanvar, nanstd
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
New files lib/nanfunctions.py and lib/tests/test_nanfunctions.py are
added and both the previous and new nan functions and tests are moved
into them.

The existing nan functions moved from lib/function_base are:

    nansum, nanmin, nanmax, nanargmin, nanargmax

The added nan functions moved from core/numeric are:

    nanmean, nanvar, nanstd
</pre>
</div>
</content>
</entry>
</feed>
