issues: 1052753606
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1052753606 | I_kwDOAMm_X84-v77G | 5985 | Formatting data array as strings? | 15331990 | open | 0 | 7 | 2021-11-13T19:29:02Z | 2023-03-17T13:10:06Z | CONTRIBUTOR | https://github.com/pydata/xarray/discussions/5865#discussioncomment-1636647 I wonder if it's possible to implement a built-in function like:
To wrap: ``` import xarray as xr da = xr.DataArray([5., 6., 7.]) das = xr.DataArray("%.2f") das.str % da <xarray.DataArray (dim_0: 3)> array(['5.00', '6.00', '7.00'], dtype='<U4') Dimensions without coordinates: dim_0 ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/5985/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |