home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 242950283

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/987#issuecomment-242950283 https://api.github.com/repos/pydata/xarray/issues/987 242950283 MDEyOklzc3VlQ29tbWVudDI0Mjk1MDI4Mw== 1217238 2016-08-28T01:22:45Z 2016-08-28T01:22:45Z MEMBER

@joonro Yes, this does get messy. We'll eventually support indexing like X[X > 0] directly, which will help significantly.

In the meantime, you can still break things up onto multiple lines by saving temporary variables:

condition = X.loc[..., 'variable'].values > 0 X.loc[..., 'variable'].values[condition] = Y.loc[..., 'variable'].values[condition]

Using abbreviations like ... for :, :, : (assuming 'variable' is along the last axis) can also help.

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