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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dask_geopandas-0.1.3-py3-none-any.whl (48.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dask-geopandas-0.1.3.tar.gz
  • Upload date:
  • Size: 54.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for dask-geopandas-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b853aabd865ead6666f58560496f819ef57f5b12d941b9c65a84ddff59c73fb4
MD5 cf1302e48d6319370a5c62624047d1c3
BLAKE2b-256 38fb0863ab38add09d431bd8dc162c3231afc9f3134b323c2eda5f6471f81f80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dask_geopandas-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 48.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for dask_geopandas-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ff6accccc3814a0ee42f34c1d19d1c6b3aacc22a35d87d8db24eca9f5892f31f
MD5 3ae97a4b6d95b6fb55f5118154cb2d86
BLAKE2b-256 2d68f571cc3ae3f4d6e8350d54f255fb8693be621378ac3a4e5be3db41e6bab1

See more details on using hashes here.

Supported by

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