id,node_id,number,state,locked,title,user,body,created_at,updated_at,closed_at,merged_at,merge_commit_sha,assignee,milestone,draft,head,base,author_association,auto_merge,repo,url,merged_by 573579751,MDExOlB1bGxSZXF1ZXN0NTczNTc5NzUx,4911,closed,0,Fix behaviour of min_count in reducing functions,367900,"The first commit modifies existing tests to check Dask-backed arrays are not computed. It also adds some specific checks that the correct result (NaN or a number as appropriate) is returned and some tests for checking membership of `xarray.core.dtypes.NAT_TYPES`. After this commit I get 89 test failures, and they seem to cover the cases reported in #4898. The second commit fixes these failures: * The checks of the nan mask in `xarray.core.nanops._maybe_null_out` are changed to use `np.where` which allows lazy evaluation. * Previously, `xarray.core.dtypes.NAT_TYPES` was a tuple of datetime64 and timedelta64 instances; I've changed it to a set of the dtypes of these instances. It is only used for the membership check in `_maybe_null_out` so a set seems appropriate. The previous use of instances rather than dtypes caused a bug -- ``np.float64 in NAT_TYPES`` returned true even though it only contained datetime64/timedelta64. This meant that reducing operations over all axes (`axis=None` or `...`) with float64 arrays ignored min_count as the membership check in `_maybe_null_out` caused it to be skipped. - [x] Closes #4898 - [x] Tests added - [x] Passes `pre-commit run --all-files` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` ",2021-02-15T13:53:34Z,2021-02-19T08:12:39Z,2021-02-19T08:12:02Z,2021-02-19T08:12:01Z,d61efb687a9b2989ad22c70334b8cc2e32251d16,,,0,e0dec832c2da733342a689d495748ca9a240dc7e,7c4e2ac83f7b4306296ff9b7b51aaf016e5ad614,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/4911, 614408343,MDExOlB1bGxSZXF1ZXN0NjE0NDA4MzQz,5149,closed,0,Convert attribute and dimension names to strings when generating HTML repr,367900,"The standard repr() already handled non-string attribute names, but the HTML formatter failed when trying to escape HTML entitites in non-string names. This just calls str() before escape(). It also includes tests for Dataset, DataArray and Variable. Reported in #5146. ~~Note that there may be a need to do the same for dimension names if they are allowed to be strings. Currently dimensions must be created as strings but can later be renamed to non-strings, see #5148.~~ Dimensions can be non-str, updated. - [x] Tests added - [x] Passes `pre-commit run --all-files` ",2021-04-13T12:14:03Z,2021-05-04T03:39:00Z,2021-05-04T03:38:53Z,2021-05-04T03:38:52Z,1c198a191127c601d091213c4b3292a8bb3054e1,,,0,ec2c42944303240436f98587817d464116cbf05c,9ce95a8ef3e63f553da33d4df7ed92afc5f182bb,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/5149, 919616063,PR_kwDOAMm_X8420Do_,6516,closed,0,Use new importlib.metadata.entry_points interface where available,367900,"With Python 3.10, the entry_points() method returning a SelectableGroups dict interface was deprecated. The preferred way is to now filter by group through a keyword argument. - [x] Closes #6514. ",2022-04-26T16:06:35Z,2022-04-27T06:01:08Z,2022-04-27T01:07:51Z,2022-04-27T01:07:50Z,819573208e144640bf4ff7a13d5b2cc08b8e3ef7,,,0,c6ad32b1f0d15000ba544bd640a904d93e9c94d6,f2d0eb49b06f216117f048287e0796c1b6fd0a1d,CONTRIBUTOR,,13221727,https://github.com/pydata/xarray/pull/6516,