greedy

Greedy (topological) coloring for GeoPandas


Keywords
color, geopandas, greedy-algorithms
License
GPL-3.0
Install
pip install greedy==0.1.1

Documentation

greedy

Build Status codecov

Deprecated

greedy has been included in mapclassify and is no longer supported and developed as an independent package.

Use greedy module in mapclassify instead.

from mapclassify import greedy

gdf['colors'] = greedy(gdf)

Introduction

Greedy (topological) coloring for GeoPandas

greedy is a Python package which brings topological (greedy) coloring to GeoPandas. It offers several coloring strategies, all accessible using one line of code:

gdf['colors'] = greedy(gdf)

alt text

Documentation

Documentation of greedy is available at martinfleis.github.io/greedy.

Install

You can install momepy using Conda from conda-forge (recommended):

conda install -c conda-forge greedy

or from PyPI using pip:

pip install greedy

See the installation instructions for detailed instructions.


Copyright (c) 2017 - 2019 Martin Fleischmann, Nyall Dawson