rustworkx icon indicating copy to clipboard operation
rustworkx copied to clipboard

Adding Polars support

Open bjornasm opened this issue 2 years ago • 1 comments

What is the expected enhancement?

From the documentation we see that you can get an adjacency_matrix, however this is in the form of a numpy array. It would be great if the adjacency_matrix function could return a Polars dataframe.

bjornasm avatar Nov 28 '23 18:11 bjornasm

I think this is reasonable. We just need to be careful not to introduce Polars as a required dependency in Python. Having it as a dependency in Rust is fine because Cargo manages it well, but musl/s390x/ppc64 downstream users could have issues installing Polars for Python

IvanIsCoding avatar Nov 28 '23 23:11 IvanIsCoding