home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 338860305

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/1651#issuecomment-338860305 https://api.github.com/repos/pydata/xarray/issues/1651 338860305 MDEyOklzc3VlQ29tbWVudDMzODg2MDMwNQ== 1217238 2017-10-24T03:16:00Z 2017-10-24T03:16:00Z MEMBER

Right, but numpy functions return the original type?

Not quite -- many numpy functions check for a method of the same name on their argument and call it instead of the numpy routine. If you look at the source of np.sum, it first checks for a sum method on its argument and calls that method instead if found. Otherwise, it coerces the argument to a numpy array and calls the numpy method.

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