html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/pull/5876#issuecomment-1010114336,https://api.github.com/repos/pydata/xarray/issues/5876,1010114336,IC_kwDOAMm_X848NR8g,6628425,2022-01-11T16:06:33Z,2022-01-11T16:06:33Z,MEMBER,Thanks @pierreloicq!,"{""total_count"": 3, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 1, ""confused"": 0, ""heart"": 1, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-1008434351,https://api.github.com/repos/pydata/xarray/issues/5876,1008434351,IC_kwDOAMm_X848G3yv,10194086,2022-01-09T22:15:25Z,2022-01-09T22:15:25Z,MEMBER,"Sounds good. I think `""nan""` is more explicit than `""""`. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-1008380806,https://api.github.com/repos/pydata/xarray/issues/5876,1008380806,IC_kwDOAMm_X848GquG,14808389,2022-01-09T20:37:08Z,2022-01-09T20:37:08Z,MEMBER,"I agree. For now, it would be good to use `""nan""` (or `""""`?).

The only way to really fix this would be to introduce missing values for string dtypes, but I guess that will still take a while (unless we get `pandas` extension arrays to behave like duck arrays and to support n-dimensional arrays, see #5287).","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-1008312049,https://api.github.com/repos/pydata/xarray/issues/5876,1008312049,IC_kwDOAMm_X848GZ7x,6628425,2022-01-09T14:51:33Z,2022-01-09T17:53:08Z,MEMBER,"@dcherian @mathause @andersy005 given a DataArray of times with missing values, do you have any thoughts on what the preferred result of `da.dt.season` would be?

One option would be to return `np.nan` in place of the missing time values:

```
In [3]: times = [np.datetime64(""NaT""), np.datetime64(""2000-01-01"")]

In [4]: da = xr.DataArray(times, dims=[""x""])

In [5]: da.dt.season
Out[5]:
<xarray.DataArray 'season' (x: 2)>
array([nan, 'DJF'], dtype=object)
Dimensions without coordinates: x
```

This would be somewhat in line with how pandas handles this in other contexts (e.g. https://github.com/pydata/xarray/pull/5876#discussion_r734447120).  But this sort of awkwardly returns a DataArray of mixed types.  Another option, and this is how @pierreloicq implemented things originally, would be to simply return a string label for missing values, e.g.

```
In [5]: da.dt.season
Out[5]:
<xarray.DataArray 'season' (x: 2)>
array(['nan', 'DJF'], dtype='<U32')
Dimensions without coordinates: x
```

As I've thought about this more, this feels nicer, because the types are consistent and ""season"" is just a category label, and `""nan""` categorizes these values just as well as `np.nan`.  Do you agree?","{""total_count"": 3, ""+1"": 3, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-1008341982,https://api.github.com/repos/pydata/xarray/issues/5876,1008341982,IC_kwDOAMm_X848GhPe,2448579,2022-01-09T17:36:55Z,2022-01-09T17:36:55Z,MEMBER,"> As I've thought about this more, this feels nicer, because the types are consistent and ""season"" is a just a category label, and ""nan"" categorizes these values just as well as np.nan. 

I prefer this from a user perspective. It's nice not to have to deal with mixed types and object arrays.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-973649826,https://api.github.com/repos/pydata/xarray/issues/5876,973649826,IC_kwDOAMm_X846CLei,6628425,2021-11-19T01:41:05Z,2021-11-19T01:41:05Z,MEMBER,No worries about the cftime tests by the way -- how to best handle missing values in that context is still somewhat of an open question (https://github.com/Unidata/cftime/issues/145).,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-957930204,https://api.github.com/repos/pydata/xarray/issues/5876,957930204,IC_kwDOAMm_X845GNrc,8809578,2021-11-02T16:40:31Z,2021-11-02T16:40:31Z,CONTRIBUTOR,"I did not manage to add the test on the 
```
@requires_cftime
def test_seasons:
```
`cftime_date_type(np.datetime64(""NaT""))`
or 
`cftime_date_type(np.nan)`
are not allowed

Feel free to add it if you understand that more than me","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-946897283,https://api.github.com/repos/pydata/xarray/issues/5876,946897283,IC_kwDOAMm_X844cIGD,41898282,2021-10-19T16:31:49Z,2021-11-02T16:37:14Z,CONTRIBUTOR,"## Unit Test Results
         6 files           6 suites   53m 13s [:stopwatch:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols ""duration of all tests"")
16 209 tests 14 473 [:heavy_check_mark:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols ""passed tests"") 1 736 [:zzz:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols ""skipped / disabled tests"") 0 [:x:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols ""failed tests"")
90 450 runs  82 270 [:heavy_check_mark:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols ""passed tests"") 8 180 [:zzz:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols ""skipped / disabled tests"") 0 [:x:](https://github.com/EnricoMi/publish-unit-test-result-action/blob/v1.20/README.md#the-symbols ""failed tests"")

Results for commit 817b42f3.

:recycle: This comment has been updated with latest results.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-957894785,https://api.github.com/repos/pydata/xarray/issues/5876,957894785,IC_kwDOAMm_X845GFCB,14808389,2021-11-02T16:12:17Z,2021-11-02T16:12:17Z,MEMBER,"that's a random error that sometimes happens with `mamba` in CI. I've restarted the CI, hopefully it will pass now.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-957890546,https://api.github.com/repos/pydata/xarray/issues/5876,957890546,IC_kwDOAMm_X845GD_y,8809578,2021-11-02T16:10:15Z,2021-11-02T16:10:15Z,CONTRIBUTOR,I don't understand this test fail. My modifications pass the tests on my computer. ,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-946873316,https://api.github.com/repos/pydata/xarray/issues/5876,946873316,IC_kwDOAMm_X844cCPk,24736507,2021-10-19T16:04:44Z,2021-10-26T07:47:43Z,NONE,"Hello @pierreloicq! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:





There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2021-10-26 07:47:43 UTC","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-949270052,https://api.github.com/repos/pydata/xarray/issues/5876,949270052,IC_kwDOAMm_X844lLYk,14371165,2021-10-22T04:08:59Z,2021-10-22T04:08:59Z,MEMBER,"The code linting errors are still there and needs to be fixed, you can copy those changes to get that check passing. We use `black` for the code formatting, so if you run it there should be no code formatting differences, or run the `pre-commit` which also runs black. See http://xarray.pydata.org/en/stable/contributing.html","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-948999461,https://api.github.com/repos/pydata/xarray/issues/5876,948999461,IC_kwDOAMm_X844kJUl,8809578,2021-10-21T21:01:31Z,2021-10-21T21:01:31Z,CONTRIBUTOR,"Indeed, but it looks like they were corrected automatically, right ?
If so, I need to wait 5875 to pass ?



Le jeu. 21 oct. 2021 à 20:29, Illviljan ***@***.***> a écrit :

> =========================== short test summary info ============================
> FAILED xarray/tests/test_backends.py::TestPseudoNetCDFFormat::test_ict_format
> FAILED xarray/tests/test_backends.py::TestPseudoNetCDFFormat::test_ict_format_write
> = 2 failed, 13692 passed, 1110 skipped, 226 xfailed, 66 xpassed, 128 warnings in 549.50s (0:09:09) =
>
> Will be fixed in #5875 <https://github.com/pydata/xarray/pull/5875>.
>
> But there's a few code linting errors which pep8speaks is also complaining
> about.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/pydata/xarray/pull/5876#issuecomment-948893303>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACDGY2VM4DWDE6ZXM2K63HDUIBL2FANCNFSM5GJQ3F2Q>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-948893303,https://api.github.com/repos/pydata/xarray/issues/5876,948893303,IC_kwDOAMm_X844jvZ3,14371165,2021-10-21T18:29:44Z,2021-10-21T18:29:44Z,MEMBER,"```
=========================== short test summary info ============================
FAILED xarray/tests/test_backends.py::TestPseudoNetCDFFormat::test_ict_format
FAILED xarray/tests/test_backends.py::TestPseudoNetCDFFormat::test_ict_format_write
= 2 failed, 13692 passed, 1110 skipped, 226 xfailed, 66 xpassed, 128 warnings in 549.50s (0:09:09) =
```
Will be fixed in #5875.

But there's a few code linting errors which pep8speaks is also complaining about.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705
https://github.com/pydata/xarray/pull/5876#issuecomment-948358184,https://api.github.com/repos/pydata/xarray/issues/5876,948358184,IC_kwDOAMm_X844hswo,8809578,2021-10-21T08:00:48Z,2021-10-21T08:00:48Z,CONTRIBUTOR,"Hello,
I tried some rapid change without even cloning the code. 
Can someone look at the failing tests ? some don't seem related to my modification.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1030492705