home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 424444423

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/2438#issuecomment-424444423 https://api.github.com/repos/pydata/xarray/issues/2438 424444423 MDEyOklzc3VlQ29tbWVudDQyNDQ0NDQyMw== 5308236 2018-09-25T18:06:11Z 2018-09-26T13:58:02Z NONE

Thanks @shoyer, Your comment helped me realize that at least part of the "horribly slow" probably stems from a DataArray with MultiIndex. The above code sample takes 5-6 seconds for 1000 b values. When stacking the DataArray beforehand with d = d.stack(adim=['a'], bdim=['b']), it takes around 14 seconds. However, both of these are unfortunately very slow compared to indexing in e.g. numpy or pandas.

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