Skip to content

Commit

Permalink
Fixes pydata#5898
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Nov 8, 2021
1 parent 7f39cc0 commit 99bfe12
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 0 deletions.
144 changes: 144 additions & 0 deletions xarray/core/_reductions.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,10 @@ def mean(
Data variables:
da float64 nan
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.mean
Expand Down Expand Up @@ -597,6 +601,10 @@ def prod(
Data variables:
da float64 12.0
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.prod
Expand Down Expand Up @@ -699,6 +707,10 @@ def sum(
Data variables:
da float64 9.0
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.sum
Expand Down Expand Up @@ -798,6 +810,10 @@ def std(
Data variables:
da float64 0.8367
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.std
Expand Down Expand Up @@ -897,6 +913,10 @@ def var(
Data variables:
da float64 0.7
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.var
Expand Down Expand Up @@ -984,6 +1004,10 @@ def median(
Data variables:
da float64 nan
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.median
Expand Down Expand Up @@ -1418,6 +1442,10 @@ def mean(
<xarray.DataArray ()>
array(nan)
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.mean
Expand Down Expand Up @@ -1509,6 +1537,10 @@ def prod(
<xarray.DataArray ()>
array(12.)
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.prod
Expand Down Expand Up @@ -1601,6 +1633,10 @@ def sum(
<xarray.DataArray ()>
array(9.)
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.sum
Expand Down Expand Up @@ -1690,6 +1726,10 @@ def std(
<xarray.DataArray ()>
array(0.83666003)
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.std
Expand Down Expand Up @@ -1779,6 +1819,10 @@ def var(
<xarray.DataArray ()>
array(0.7)
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.var
Expand Down Expand Up @@ -1858,6 +1902,10 @@ def median(
<xarray.DataArray ()>
array(nan)
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.median
Expand Down Expand Up @@ -2350,6 +2398,10 @@ def mean(
Data variables:
da (labels) float64 nan 2.0 2.0
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.mean
Expand Down Expand Up @@ -2457,6 +2509,10 @@ def prod(
Data variables:
da (labels) float64 nan 4.0 3.0
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.prod
Expand Down Expand Up @@ -2565,6 +2621,10 @@ def sum(
Data variables:
da (labels) float64 nan 4.0 4.0
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.sum
Expand Down Expand Up @@ -2670,6 +2730,10 @@ def std(
Data variables:
da (labels) float64 nan 0.0 1.414
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.std
Expand Down Expand Up @@ -2775,6 +2839,10 @@ def var(
Data variables:
da (labels) float64 nan 0.0 2.0
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.var
Expand Down Expand Up @@ -2866,6 +2934,10 @@ def median(
Data variables:
da (labels) float64 nan 2.0 2.0
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.median
Expand Down Expand Up @@ -3359,6 +3431,10 @@ def mean(
Data variables:
da (time) float64 1.0 2.0 nan
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.mean
Expand Down Expand Up @@ -3466,6 +3542,10 @@ def prod(
Data variables:
da (time) float64 nan 6.0 nan
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.prod
Expand Down Expand Up @@ -3574,6 +3654,10 @@ def sum(
Data variables:
da (time) float64 nan 6.0 nan
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.sum
Expand Down Expand Up @@ -3679,6 +3763,10 @@ def std(
Data variables:
da (time) float64 nan 1.0 nan
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.std
Expand Down Expand Up @@ -3784,6 +3872,10 @@ def var(
Data variables:
da (time) float64 nan 1.0 nan
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.var
Expand Down Expand Up @@ -3875,6 +3967,10 @@ def median(
Data variables:
da (time) float64 1.0 2.0 nan
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.median
Expand Down Expand Up @@ -4327,6 +4423,10 @@ def mean(
Coordinates:
* labels (labels) object 'a' 'b' 'c'
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.mean
Expand Down Expand Up @@ -4424,6 +4524,10 @@ def prod(
Coordinates:
* labels (labels) object 'a' 'b' 'c'
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.prod
Expand Down Expand Up @@ -4522,6 +4626,10 @@ def sum(
Coordinates:
* labels (labels) object 'a' 'b' 'c'
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.sum
Expand Down Expand Up @@ -4617,6 +4725,10 @@ def std(
Coordinates:
* labels (labels) object 'a' 'b' 'c'
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.std
Expand Down Expand Up @@ -4712,6 +4824,10 @@ def var(
Coordinates:
* labels (labels) object 'a' 'b' 'c'
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.var
Expand Down Expand Up @@ -4795,6 +4911,10 @@ def median(
Coordinates:
* labels (labels) object 'a' 'b' 'c'
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.median
Expand Down Expand Up @@ -5246,6 +5366,10 @@ def mean(
Coordinates:
* time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.mean
Expand Down Expand Up @@ -5343,6 +5467,10 @@ def prod(
Coordinates:
* time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.prod
Expand Down Expand Up @@ -5441,6 +5569,10 @@ def sum(
Coordinates:
* time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.sum
Expand Down Expand Up @@ -5536,6 +5668,10 @@ def std(
Coordinates:
* time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.std
Expand Down Expand Up @@ -5631,6 +5767,10 @@ def var(
Coordinates:
* time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.var
Expand Down Expand Up @@ -5714,6 +5854,10 @@ def median(
Coordinates:
* time (time) datetime64[ns] 2001-01-31 2001-04-30 2001-07-31
Notes
-----
Non-numeric variables will be removed prior to reducing.
See Also
--------
numpy.median
Expand Down
Loading

0 comments on commit 99bfe12

Please sign in to comment.