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/7628#issuecomment-1471413892,https://api.github.com/repos/pydata/xarray/issues/7628,1471413892,IC_kwDOAMm_X85Xs_6E,43316012,2023-03-16T06:53:52Z,2023-03-16T06:53:52Z,COLLABORATOR,"Again, I think that this implementation is too specific and the issue wanted a more general string formatting option. Also, auch a method is better kept as part of the StrAccessor.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1624520287 https://github.com/pydata/xarray/pull/7628#issuecomment-1469697108,https://api.github.com/repos/pydata/xarray/issues/7628,1469697108,IC_kwDOAMm_X85XmcxU,43316012,2023-03-15T09:57:12Z,2023-03-15T09:57:12Z,COLLABORATOR,"By the way, this works (but probably slow?): ```python def tostr(x): return f""{:.2f}"" tostr_v = np.vectorize(tostr) da = xr.DataArray([1, 2, 3.456], dims=""x"") tostr_v(da) ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1624520287 https://github.com/pydata/xarray/pull/7628#issuecomment-1469677146,https://api.github.com/repos/pydata/xarray/issues/7628,1469677146,IC_kwDOAMm_X85XmX5a,43316012,2023-03-15T09:43:57Z,2023-03-15T09:44:33Z,COLLABORATOR,"Wouldn't it be more useful to have something like `da.str.format(""sometext: {:2.2f}"")` Or maybe `da.as_str(...)`","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1624520287