home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 358850297

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/1839#issuecomment-358850297 https://api.github.com/repos/pydata/xarray/issues/1839 358850297 MDEyOklzc3VlQ29tbWVudDM1ODg1MDI5Nw== 1217238 2018-01-19T02:42:41Z 2018-01-19T02:42:41Z MEMBER

What would use suggest for the signature of a function like xr.ones?

I think the main reason why we don't have these helpers is that xr.DataArray(np.ones(3, 4), dims=['x', 'y']) is nearly as succinct

I suppose we could possibly do better now that newer versions of Python (3.6+) guarantee order for keyword arguments, so we could have something like xr.ones(x=3, y=4).

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