home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1419032191

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/7504#issuecomment-1419032191 https://api.github.com/repos/pydata/xarray/issues/7504 1419032191 IC_kwDOAMm_X85UlLZ_ 6628425 2023-02-06T12:51:38Z 2023-02-06T12:51:38Z MEMBER

Indeed currently we do not support indexing a CFTimeIndex-backed array using a list of strings, but that's something I think we would be happy to change (e.g. we do accept a list of strings to interp for CFTimeIndex-backed arrays).

For the time being you should be able to use cftime.DatetimeAllLeap values themselves: python ds.sel(time=[cftime.DatetimeAllLeap(2023, 1, 1), cftime.DatetimeAllLeap(2023, 1, 2)])

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