Replies: 1 comment
-
I think this can be justified by interpreting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to categorize DataArray values with
xr.where
. Here is a simple case:I understand that
da.attrs
should be empty, number 0 has no attributes. However, coordinate attributes are also lost. What surprised me is the output when I setkeep_attrs=False
:Here, coordinate attributes are preserved. This is what I want. Can I rely on this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions