-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
forward fill : transpose_coords=False #4167
Comments
Thanks for filing an issue @NickMortimer . The transpose call is here and is used because Lines 405 to 421 in b9e6a36
Now Is there a reason why you want the coordinates to not have the same dimension order as the data? In that case, I would add another transpose call after |
The warning asked me to set transpose_coords=False to keep the current behavior so my default position is to do that so my code keeps working as is but ffill doesn't take transpose_coords as a parameter or does it in (#3824)? I'm doing this inside a map_blocks call, and have already established a template and if the dims are swapped on the returned object the process fails as it cannot be combined as it doesn't match the expected template, so yes I added a transpose after the fill, but this does make things more complex as depending on how the user has subset the data the dimensions will change so that will require extra code to get the dimensions before and then to transpose after. |
we had a few releases since then so I assume we can close this. If you disagree, feel free to reopen. |
I'm building a DataArray and get the following future warning, but can't seem to find a way to pass
transpose_coords=False to ffill to keep current behavior?
/local-home/mor582/miniconda3/envs/dev2/lib/python3.8/site-packages/xarray/core/missing.py:403: FutureWarning: This DataArray contains multi-dimensional coordinates. In the future, these coordinates will be transposed as well unless you specify transpose_coords=False.
return apply_ufunc()
The text was updated successfully, but these errors were encountered: