We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
spatial_partitions
This is a bit of a strange use-case, but roundtripping a GeoDataFrame through pickle loses the spatial_partitions property:
import dask_geopandas import geopandas.datasets import pickle df = geopandas.read_file(geopandas.datasets.get_path('naturalearth_lowres')) ddf = dask_geopandas.from_geopandas(df, npartitions=2) print(ddf.spatial_partitions) # None ddf2 = pickle.loads(pickle.dumps(df)) print(ddf2.spatial_partitions) # AttributeError
__init__ doesn't run, so it's never set at
__init__
dask-geopandas/dask_geopandas/core.py
Line 67 in bc3af63
Maybe adding spatial partitions to _args to mirror dask.dataframe._Frame like in https://github.com/dask/dask/blob/main/dask/dataframe/core.py#L233-L241 would do the trick.
_args
The text was updated successfully, but these errors were encountered:
Ensure spatial_partitions are properly pickled
551ae44
Closes geopandas#237
Ensure spatial_partitions are properly pickled (#238)
474c6c3
Closes #237
Successfully merging a pull request may close this issue.
This is a bit of a strange use-case, but roundtripping a GeoDataFrame through pickle loses the
spatial_partitions
property:__init__
doesn't run, so it's never set atdask-geopandas/dask_geopandas/core.py
Line 67 in bc3af63
Maybe adding spatial partitions to
_args
to mirror dask.dataframe._Frame like in https://github.com/dask/dask/blob/main/dask/dataframe/core.py#L233-L241 would do the trick.The text was updated successfully, but these errors were encountered: