home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 850556738

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/pull/5390#issuecomment-850556738 https://api.github.com/repos/pydata/xarray/issues/5390 850556738 MDEyOklzc3VlQ29tbWVudDg1MDU1NjczOA== 56925856 2021-05-28T17:12:52Z 2021-05-28T17:14:08Z CONTRIBUTOR

@willirath this is great stuff, thanks again! So generally it looks like the graph is more efficient when doing operations of the form:

python3 (X * Y).mean('time') - (X.mean('time') * Y.mean('time'))

than doing python3 ((X - X.mean('time')) * (Y-Y.mean('time'))).mean('time')

or like what I've implemented (see screenshot)? ```python3 intermediate = (X * Y) - (X.mean('time') * Y.mean('time'))

intermediate.mean('time') ```

If so, it seems like the most efficient(?) way to do the computation in _cov_corr() is to combine it all into one line? I can't think of how to do this though...

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