Qiskit / rustworkx

A high performance Python graph library implemented in Rust.
https://www.rustworkx.org
Apache License 2.0
1.11k stars 151 forks source link

Adding Polars support #1033

Open bjornasm opened 11 months ago

bjornasm commented 11 months ago

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.

IvanIsCoding commented 11 months ago

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