home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 557203189

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/pull/3543#issuecomment-557203189 https://api.github.com/repos/pydata/xarray/issues/3543 557203189 MDEyOklzc3VlQ29tbWVudDU1NzIwMzE4OQ== 10194086 2019-11-21T18:01:55Z 2019-11-21T18:01:55Z MEMBER

Thanks. Just for reference, the current implementation leads to a series of CFTimeIndex (which fails when subtracting one from the other):

``` python pd.Index([index.take([0]) for index in indexes]).to_series()

[4500-12-31 00:00:00] CFTimeIndex([4500-12-31 00:00:00], dtype='obje... [4600-12-31 00:00:00] CFTimeIndex([4600-12-31 00:00:00], dtype='obje... [5100-12-31 00:00:00] CFTimeIndex([5100-12-31 00:00:00], dtype='obje... dtype: object ``` The implementation in this PR leads to a series of CFTime (and subtracting one from the other works):

``` python pd.Index([index[0] for index in indexes]).to_series()

4500-12-31 00:00:00 4500-12-31 00:00:00 4600-12-31 00:00:00 4600-12-31 00:00:00 5100-12-31 00:00:00 5100-12-31 00:00:00 dtype: object ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  523878167
Powered by Datasette · Queries took 317.79ms · About: xarray-datasette