home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1340809916

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/7363#issuecomment-1340809916 https://api.github.com/repos/pydata/xarray/issues/7363 1340809916 IC_kwDOAMm_X85P6yK8 14808389 2022-12-07T11:09:03Z 2022-12-07T11:09:03Z MEMBER

implementing a "grow_coordinate" function to grow / reallocate larger arrays copying the previous chunk along a coordinate

this sounds a lot like pad with mode="constant"?

is it possible that xarray makes no assumptions of this kind

xarray uses pandas indexes for alignment and indexing (if you have a recent version of xarray you should see the "Indexes" section in the HTML repr), so yes, it will always make sure to use a search that is more efficient than the linear search, as long as the data is sorted. This was also the reason why you had to use swap_dims / set_index to create an index along the coordinate you wanted to reindex.

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