GerryChain icon indicating copy to clipboard operation
GerryChain copied to clipboard

Explore interoperability opportunities

Open maxhully opened this issue 5 years ago • 1 comments

In a perfect world, we could write our metrics so that they would work with scalar values, vectors (like numpy arrays), pandas Seriess, and our Partitions. What kind of API changes would be required for that to be possible?

maxhully avatar Apr 04 '19 16:04 maxhully

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

maxhully avatar May 09 '19 15:05 maxhully

This direction seems to have been abandoned. Some of the functions in GerryTools provide metrics that are not strongly coupled to the Partitionobject and can read DataFrames instead.

pjrule avatar Feb 07 '23 17:02 pjrule