home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1531050846

This data as json

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/issues/7790#issuecomment-1531050846 https://api.github.com/repos/pydata/xarray/issues/7790 1531050846 IC_kwDOAMm_X85bQfte 5821660 2023-05-02T08:04:45Z 2023-05-03T04:20:11Z MEMBER

As in #7098, citing @dcherian:

I think the real solution here is to explicitly handle NaNs during the decoding step. We do want these to be NaT in the output.

There are three more issues revealed here when using datetime64:

  • if _FillValue is set in encoding, it has to be of same type/resolution as the times in the array
  • If _FillValue is provided, we need to provide dtype and units to which fit our data, eg. if the _FillValue is referenced to unix-epoch the unit's should be equivalent
  • when encoding in the presence of NaT the data array is converted to floating point with NaN, which is problematic for the subsequent conversion to int64
{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  1685803922
Powered by Datasette · Queries took 0.537ms · About: xarray-datasette