home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 269600582

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/1151#issuecomment-269600582 https://api.github.com/repos/pydata/xarray/issues/1151 269600582 MDEyOklzc3VlQ29tbWVudDI2OTYwMDU4Mg== 6213168 2016-12-29T09:02:36Z 2016-12-29T09:05:48Z MEMBER

I just realised that xarray today already implements meaningful logic when concatenating between a and c in my example above - both on an existing dimension as well as on a new one. It's just a and b that don't work. I agree that defaulting to NaN would be a good option (regardless if the dimension is new or existing).

So to recap, when concatenating [a, b, c], where b does not have the y coord: - if the dtype of the y coord in both a and c is float, numpy.float32, or numpy.float64, fill in with NaN - if it's any datetime format, fill in with NaT - if it's strings, fill in with empty string?? - in any other case, convert everything to object and fill in with None

Correct? Is there any helper function to facilitate this?

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