issues: 681627420
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
681627420 | MDU6SXNzdWU2ODE2Mjc0MjA= | 4352 | da.sum(min_count=1) errors for integer data | 10194086 | closed | 0 | 1 | 2020-08-19T07:52:35Z | 2020-10-02T09:28:27Z | 2020-10-02T09:28:27Z | MEMBER | What happened:
What you expected to happen:
Minimal Complete Verifiable Example:
Anything else we need to know?: Full traceback
```python
In [37]: da.sum(min_count=1)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-37-817bfdfe2211> in <module>
----> 1 da.sum(min_count=1)
~/code/xarray/xarray/core/common.py in wrapped_func(self, dim, axis, skipna, **kwargs)
44
45 def wrapped_func(self, dim=None, axis=None, skipna=None, **kwargs):
---> 46 return self.reduce(func, dim, axis, skipna=skipna, **kwargs)
47
48 else:
~/code/xarray/xarray/core/dataarray.py in reduce(self, func, dim, axis, keep_attrs, keepdims, **kwargs)
2336 """
2337
-> 2338 var = self.variable.reduce(func, dim, axis, keep_attrs, keepdims, **kwargs)
2339 return self._replace_maybe_drop_dims(var)
2340
~/code/xarray/xarray/core/variable.py in reduce(self, func, dim, axis, keep_attrs, keepdims, allow_lazy, **kwargs)
1591 data = func(input_data, axis=axis, **kwargs)
1592 else:
-> 1593 data = func(input_data, **kwargs)
1594
1595 if getattr(data, "shape", ()) == self.shape:
~/code/xarray/xarray/core/duck_array_ops.py in f(values, axis, skipna, **kwargs)
310
311 try:
--> 312 return func(values, axis=axis, **kwargs)
313 except AttributeError:
314 if not isinstance(values, dask_array_type):
~/code/xarray/xarray/core/duck_array_ops.py in f(*args, **kwargs)
46 else:
47 wrapped = getattr(eager_module, name)
---> 48 return wrapped(*args, **kwargs)
49
50 else:
<__array_function__ internals> in sum(*args, **kwargs)
TypeError: _sum_dispatcher() got an unexpected keyword argument 'min_count'
```
Environment: Output of <tt>xr.show_versions()</tt>INSTALLED VERSIONS ------------------ commit: a7fb5a9fa1a2b829181ea9e4986b959f315350dd python: 3.7.3 | packaged by conda-forge | (default, Jul 1 2019, 21:52:21) [GCC 7.3.0] python-bits: 64 OS: Linux OS-release: 5.4.0-42-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.6 libnetcdf: 4.7.4 xarray: 0.15.2.dev64+g2542a63f pandas: 0.25.3 numpy: 1.17.3 scipy: 1.3.1 netCDF4: 1.5.4 pydap: installed h5netcdf: 0.7.4 h5py: 2.10.0 Nio: None zarr: 2.3.2 cftime: 1.0.4.2 nc_time_axis: None PseudoNetCDF: installed rasterio: 1.1.0 cfgrib: 0.9.5.4 iris: None bottleneck: 1.2.1 dask: 2.6.0 distributed: 2.6.0 matplotlib: 3.3.1 cartopy: 0.18.0 seaborn: 0.9.0 numbagg: None pint: None setuptools: 49.6.0.post20200814 pip: 19.3.1 conda: None pytest: 5.2.2 IPython: 7.17.0 sphinx: None |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4352/reactions", "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |