GerryChain
GerryChain copied to clipboard
Explore interoperability opportunities
In a perfect world, we could write our metrics so that they would work with scalar values, vectors (like numpy arrays), pandas Series
s, and our Partition
s. What kind of API changes would be required for that to be possible?
I did some work in this direction, writing a small graph/graph partition library that uses SciPy sparse matrices for holding adjacency information and pandas DataFrames for node and edge data: https://github.com/maxhully/partitions
This direction seems to have been abandoned. Some of the functions in GerryTools provide metrics that are not strongly coupled to the Partition
object and can read DataFrames instead.