Skip to content

How can I unstack a DataArray after having reassigned the MultiIndex? #7337

Answered by mathause
nicrie asked this question in Q&A
Discussion options

You must be logged in to vote

In step 4 you can do data = data.set_index(x=('lat', 'lon')) and then data.unstack("x")

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@nicrie
Comment options

@TomNicholas
Comment options

@benbovy
Comment options

@nicrie
Comment options

Answer selected by nicrie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants