Skip to main content

Parallel GeoPandas with Dask

Project description

Parallel GeoPandas with Dask

Dask-GeoPandas is a project merging the geospatial capabilities of GeoPandas and scalability of Dask. GeoPandas is an open source project designed to make working with geospatial data in Python easier. GeoPandas extends the datatypes used by pandas to allow spatial operations on geometric types. Dask provides advanced parallelism and distributed out-of-core computation with a dask.dataframe module designed to scale pandas. Since GeoPandas is an extension to the pandas DataFrame, the same way Dask scales pandas can also be applied to GeoPandas.

This project is a bridge between Dask and GeoPandas and offers geospatial capabilities of GeoPandas backed by Dask.

Documentation

See the documentation on https://dask-geopandas.readthedocs.io/en/latest/

Installation

This package depends on GeoPandas, Dask and PyGEOS.

One way to install all required dependencies is to use the conda package manager to create a new environment:

conda create -n geo_env
conda activate geo_env
conda config --env --add channels conda-forge
conda config --env --set channel_priority strict
conda install dask-geopandas

Example

Given a GeoPandas dataframe

import geopandas
df = geopandas.read_file('...')

We can repartition it into a Dask-GeoPandas dataframe:

import dask_geopandas
ddf = dask_geopandas.from_geopandas(df, npartitions=4)

The familiar spatial attributes and methods of GeoPandas are also available and will be computed in parallel:

ddf.geometry.area.compute()
ddf.within(polygon)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dask-geopandas-0.1.0.tar.gz (53.9 kB view details)

Uploaded Source

Built Distribution

dask_geopandas-0.1.0-py3-none-any.whl (47.5 kB view details)

Uploaded Python 3

File details

Details for the file dask-geopandas-0.1.0.tar.gz.

File metadata

  • Download URL: dask-geopandas-0.1.0.tar.gz
  • Upload date:
  • Size: 53.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for dask-geopandas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 585311fd3b1767d30066a790a49fab51c05c917ab6d8c5469101fb30686ddfbe
MD5 0a1f90fa3301be99db72b6354743cd82
BLAKE2b-256 43c938ad0ae04162eac620362d245d69ec0828683c298887c5c0102cf2e21e90

See more details on using hashes here.

File details

Details for the file dask_geopandas-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dask_geopandas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e573993c50d6c5bf11ed7f4390854ec7e15f41d641119968c1da8f7ffecca95e
MD5 86c8b1411c8defc6774a7a4ed0b4fc41
BLAKE2b-256 cf4b7dae7c27c8117a5f05206417005506a79f266e5172f2226eba6a340e145e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page