home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 112621215

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/435#issuecomment-112621215 https://api.github.com/repos/pydata/xarray/issues/435 112621215 MDEyOklzc3VlQ29tbWVudDExMjYyMTIxNQ== 1217238 2015-06-17T01:45:18Z 2015-06-17T01:45:18Z MEMBER

To elaborate: even though both pandas and xray use numpy under the hood, I suspect you may see a performance benefit if you switch from pandas to xray, for three reasons: 1. as you noted, you will no longer need repeats for all those independent variables 2. flattening to put things in a 1D column can require a copy (if the data is not already C-contiguous) 3. pandas also often makes copies when you add new dataframe columns, because it tries to consolidate adjacent columns into the same type

To answer your other question about retrieving results for specific conditions: once you put things in xray dataset, that should be as simple as ds.sel(P=100000, T=300).

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