-
Currently, there is a way in which a Is there a way to store PS: One can always create a Dataset with a single element:
where foo is a DataArray to accomplish the above. I was wondering if this is the recommended way. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @skgbanga — yes that's currently the recommended way. Edit: I found a way to convert this to a discussion, which is a much better match for this sort of question. |
Beta Was this translation helpful? Give feedback.
-
you could also use the foo.to_dataset()
# or, if foo.name is None
foo.to_dataset(name="bar") |
Beta Was this translation helpful? Give feedback.
you could also use the
to_dataset
method: