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) in 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 https://github.com/pydata/xarray/issues/5976#issuecomment-966630134,https://api.github.com/repos/pydata/xarray/issues/5976,966630134,IC_kwDOAMm_X845nZr2,5635139,2021-11-11T21:14:45Z,2021-11-11T21:16:47Z,MEMBER,"Allowing `__format__` to work could be a nice way of letting us having easy ways to represent scalars, while retaining the benefits of always returning an array from xarray methods. Separate point but FWIW I generally use `.item()` to get the value out of a scalar array.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1051241489 https://github.com/pydata/xarray/issues/5976#issuecomment-966631260,https://api.github.com/repos/pydata/xarray/issues/5976,966631260,IC_kwDOAMm_X845nZ9c,5635139,2021-11-11T21:16:37Z,2021-11-11T21:16:37Z,MEMBER,@fmaussion how would you envision this working for non-scalar arrays? Would it just raise?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1051241489