-
-
Notifications
You must be signed in to change notification settings - Fork 937
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
ENH: support missing values in dissolve #1477
Comments
Can you show an reproducible example illustrating the behaviour? I think I understand what do you mean, but just to be sure. |
This is the pandas groupby behaviour, which drops missing values. In the next pandas release, however, this is a new feature to preserve missing values: pandas-dev/pandas#30584 |
@MAGALLANESJoseManuel As a workaround in the meantime, you can generate NaN-based geometry manually and append it to the result of
|
I have the same issue. The column used in dissolve 'by' disappears. Is there any way to implement something like, keep=True? |
@mgmanalili I don't think that is the issue described above. The column used in dissolve is used as an index in the dissolved GeoDataFrame, it does not disappear. If you want to have it as a regular column, you can call |
|
In R, after using dissolve, I get missing values. If I use dissolve in geopandas, the missing values in the 'by=' are not considered, and all polygons have non-missing values...how can I keep them? (as in R)
The text was updated successfully, but these errors were encountered: