Skip to content

Assig_coords in xarray and data array object error #6508

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

You must be logged in to vote

Without testing - can you try:

ds = ds.assign_coords(year=("time", year.data), month=("time", month.data))

If this works I should also update my other answer - so I'd appreciate feedback.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pecos27
Comment options

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