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)
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)
Documentation of greedy
is available at martinfleis.github.io/greedy.
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