home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 572744391

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/3678#issuecomment-572744391 https://api.github.com/repos/pydata/xarray/issues/3678 572744391 MDEyOklzc3VlQ29tbWVudDU3Mjc0NDM5MQ== 3274 2020-01-09T20:38:35Z 2020-01-09T20:38:35Z CONTRIBUTOR

@dcherian I know it's kind of overloading this issue, but if you would also LMK if there's a clean way to do compound querying, the way one can in Pandas, I will also put in something about that.

foo = data_array.where(np.logical_and(other_data_array['bar'] == 12, other_data_array['baz'] < 22))

...is all I have come up with and this gets bloated and unreadable really quickly if there are multiple conjuncts. Infix conjunction seems not to work unless I take the .values of the data array subsets, which adds its own layer of bloat.

I figure this is something that lots of people will want to do, but it seems a lot harder than pd.DataFrame.query()

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