dask-geopandas


Namedask-geopandas JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://github.com/geopandas/dask-geopandas
SummaryParallel GeoPandas with Dask
upload_time2023-04-28 12:48:53
maintainerJulia Signell
docs_urlNone
author
requires_python>=3.7
licenseBSD
keywords dask geopandas spatial distributed cluster
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            dask-geopandas |conda| |pypi| |docs| |gitter|
=============================================

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

.. code-block:: python

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

We can repartition it into a Dask-GeoPandas dataframe:

.. code-block:: python

   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:

.. code-block:: python

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


.. |pypi| image:: https://img.shields.io/pypi/v/dask-geopandas.svg
   :target: https://pypi.python.org/pypi/dask-geopandas/

.. |conda| image:: https://img.shields.io/conda/vn/conda-forge/dask-geopandas.svg
   :target: https://anaconda.org/conda-forge/dask-geopandas
   :alt: Conda Version

.. |docs| image:: https://readthedocs.org/projects/dask-geopandas/badge/?version=latest
   :target: https://dask-geopandas.readthedocs.io/en/latest/?badge=latest
   :alt: Documentation Status

.. |gitter| image:: https://badges.gitter.im/geopandas/geopandas.svg
   :target: https://gitter.im/geopandas/geopandas
   :alt: Gitter

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/geopandas/dask-geopandas",
    "name": "dask-geopandas",
    "maintainer": "Julia Signell",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "jsignell@gmail.com",
    "keywords": "dask geopandas spatial distributed cluster",
    "author": "",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/ae/0f/6ed20067cab8f933579af6d37e9a76afce129bb50aa212d51f5905059ebc/dask-geopandas-0.3.1.tar.gz",
    "platform": null,
    "description": "dask-geopandas |conda| |pypi| |docs| |gitter|\n=============================================\n\nParallel GeoPandas with Dask\n\nDask-GeoPandas is a project merging the geospatial capabilities of GeoPandas\nand 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.\nDask provides advanced parallelism and distributed out-of-core computation with a dask.dataframe module designed to scale\npandas. Since GeoPandas is an extension to the pandas DataFrame, the same way Dask scales pandas can also be applied to GeoPandas.\n\nThis project is a bridge between Dask and GeoPandas and offers geospatial capabilities of GeoPandas backed by Dask.\n\nDocumentation\n-------------\n\nSee the documentation on https://dask-geopandas.readthedocs.io/en/latest/\n\nInstallation\n------------\n\nThis package depends on GeoPandas, Dask and PyGEOS.\n\nOne way to install all required dependencies is to use the ``conda`` package manager to\ncreate a new environment:\n\n::\n\n    conda create -n geo_env\n    conda activate geo_env\n    conda config --env --add channels conda-forge\n    conda config --env --set channel_priority strict\n    conda install dask-geopandas\n\n\n\nExample\n-------\n\nGiven a GeoPandas dataframe\n\n.. code-block:: python\n\n   import geopandas\n   df = geopandas.read_file('...')\n\nWe can repartition it into a Dask-GeoPandas dataframe:\n\n.. code-block:: python\n\n   import dask_geopandas\n   ddf = dask_geopandas.from_geopandas(df, npartitions=4)\n\nThe familiar spatial attributes and methods of GeoPandas are also available\nand will be computed in parallel:\n\n.. code-block:: python\n\n   ddf.geometry.area.compute()\n   ddf.within(polygon)\n\n\n.. |pypi| image:: https://img.shields.io/pypi/v/dask-geopandas.svg\n   :target: https://pypi.python.org/pypi/dask-geopandas/\n\n.. |conda| image:: https://img.shields.io/conda/vn/conda-forge/dask-geopandas.svg\n   :target: https://anaconda.org/conda-forge/dask-geopandas\n   :alt: Conda Version\n\n.. |docs| image:: https://readthedocs.org/projects/dask-geopandas/badge/?version=latest\n   :target: https://dask-geopandas.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\n.. |gitter| image:: https://badges.gitter.im/geopandas/geopandas.svg\n   :target: https://gitter.im/geopandas/geopandas\n   :alt: Gitter\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Parallel GeoPandas with Dask",
    "version": "0.3.1",
    "split_keywords": [
        "dask",
        "geopandas",
        "spatial",
        "distributed",
        "cluster"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "49e2fe0cbaa1958c9c8635f2b72f8e01672f3fd133033f0dca4f129a92df8621",
                "md5": "55cff721da2581fb9bf38774f834463a",
                "sha256": "c375d85b28058e80a44b185ea9fd43bc70b92c4a56db4ba3f7acb7782313d505"
            },
            "downloads": -1,
            "filename": "dask_geopandas-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "55cff721da2581fb9bf38774f834463a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 49536,
            "upload_time": "2023-04-28T12:48:51",
            "upload_time_iso_8601": "2023-04-28T12:48:51.767133Z",
            "url": "https://files.pythonhosted.org/packages/49/e2/fe0cbaa1958c9c8635f2b72f8e01672f3fd133033f0dca4f129a92df8621/dask_geopandas-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ae0f6ed20067cab8f933579af6d37e9a76afce129bb50aa212d51f5905059ebc",
                "md5": "7fb9b57627bff7ba3ff8232700c51073",
                "sha256": "032012d1dfd4d47b0009c3f89995fe5ee434edbaac78cac398637ceade9b26c3"
            },
            "downloads": -1,
            "filename": "dask-geopandas-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "7fb9b57627bff7ba3ff8232700c51073",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 55742,
            "upload_time": "2023-04-28T12:48:53",
            "upload_time_iso_8601": "2023-04-28T12:48:53.513769Z",
            "url": "https://files.pythonhosted.org/packages/ae/0f/6ed20067cab8f933579af6d37e9a76afce129bb50aa212d51f5905059ebc/dask-geopandas-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-04-28 12:48:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "geopandas",
    "github_project": "dask-geopandas",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "dask-geopandas"
}
        
Elapsed time: 0.06102s