Skip to content
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

warning on aligned axis for dask dataframes with zonal_stats #774

Open
giovp opened this issue Apr 5, 2023 · 2 comments
Open

warning on aligned axis for dask dataframes with zonal_stats #774

giovp opened this issue Apr 5, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@giovp
Copy link

giovp commented Apr 5, 2023

Describe the bug
A warning on assumption on index aligned is triggered every time zonal_stats is called with a dask array (returning a dask dataframe).

This is triggered by ( I believe) this concat:

stats_df = dd.concat([dd.from_dask_array(s) for s in stats_dict.values()], axis=1)

assuming that such warning could be ignored in this situation, an argument can be passed to ignore this warning (raised in dask/dask#6175 and added in dask/dask#6210 )

a potential solution would be to allow to pass kwargs to zonal_stats that are ingested by (also)dd.concat. wdyt? happy to submit PR

Expected behavior
No warning raised

version
xrspatial==0.3.5

@giovp giovp added the bug Something isn't working label Apr 5, 2023
@brendancol
Copy link
Contributor

@giovp Thank you! @thuydotm let's add a test for this

@Theropod
Copy link

Theropod commented Nov 3, 2023

Is there any progress on resolving this issue? I noticed that the current version still generates the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

4 participants