home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 547995641

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/3470#issuecomment-547995641 https://api.github.com/repos/pydata/xarray/issues/3470 547995641 MDEyOklzc3VlQ29tbWVudDU0Nzk5NTY0MQ== 2448579 2019-10-30T16:31:50Z 2019-10-30T16:31:50Z MEMBER

ds.time.values = pd.to_datetime(ds.time.values) + pd.DateOffset(months=2) By doing this, ds.indexes["time"] is not updated.

@folmerkrikken How about ds.assign_coords(time=pd.to_datetime(ds.time.values) + pd.DateOffset(months=2))

@shoyer I've seen this type of code elsewhere: direct assignment to .values and .data of a coordinate variable which then leads to inconsistent objects and confusing behaviour. Is there something we can do to alert users?

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