home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 966634872

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/5976#issuecomment-966634872 https://api.github.com/repos/pydata/xarray/issues/5976 966634872 IC_kwDOAMm_X845na14 10050469 2021-11-11T21:22:39Z 2021-11-11T21:22:57Z MEMBER

@fmaussion how would you envision this working for non-scalar arrays? Would it just raise?

Yes, similar to numpy:

```python da = xr.DataArray([1, 2, 3]).data print(f'{da}') print(f'{da:d}') [1 2 3]


TypeError Traceback (most recent call last) <ipython-input-93-e6dbd8f1cf00> in <module> 1 da = xr.DataArray([1, 2, 3]).data 2 print(f'{da}') ----> 3 print(f'{da:d}')

TypeError: unsupported format string passed to numpy.ndarray.format ```

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