home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 731740688

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/4598#issuecomment-731740688 https://api.github.com/repos/pydata/xarray/issues/4598 731740688 MDEyOklzc3VlQ29tbWVudDczMTc0MDY4OA== 6628425 2020-11-22T12:30:37Z 2020-11-22T12:30:37Z MEMBER

We do not have anything in xarray that works for cftime scalars currently, but we do have a to_datetimeindex method on CFTimeIndex: ``` In [1]: import xarray as xr

In [2]: times = xr.cftime_range("2000", periods=2)

In [3]: times.to_datetimeindex() Out[3]: DatetimeIndex(['2000-01-01', '2000-01-02'], dtype='datetime64[ns]', freq=None) `` Which functionality are you looking for in xarray that pandasTimestampobjects provide, butcftime` objects do not?

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