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 Shapely, GeoPandas and Dask.

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.4.3.tar.gz (63.7 kB view details)

Uploaded Source

Built Distribution

dask_geopandas-0.4.3-py3-none-any.whl (55.0 kB view details)

Uploaded Python 3

File details

Details for the file dask_geopandas-0.4.3.tar.gz.

File metadata

  • Download URL: dask_geopandas-0.4.3.tar.gz
  • Upload date:
  • Size: 63.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for dask_geopandas-0.4.3.tar.gz
Algorithm Hash digest
SHA256 95d1a08fcb0dc47454628b89dee2e89dd63df6c31183746a58b4908a2dc21e96
MD5 b3e06cc75e791f6134c3ea8784ae811c
BLAKE2b-256 3ea51271d6523bed65e022793e9f0e39ee075314ac32e2a0afb1d2d348205f90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dask_geopandas-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1cc159aecee7b3adc79383f1acc7c7e7c68130c57aea0643e190ac0149ef5bc4
MD5 ad52ec8de84581934353d65616f3b6f7
BLAKE2b-256 42f8727f6e75cd72d62a130d515a33574b3d7577a2c9ddd8ff5a55286297b272

See more details on using hashes here.

Supported by

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