pywr / pywr-next

An experimental repository exploring ideas for a major revision to Pywr using Rust as a backend.
6 stars 4 forks source link

feat: Initial support for Pandas timeseries backend. #240

Open jetuk opened 2 months ago

jetuk commented 2 months ago

Basic support for loading dataframes using Pandas. This is implemented using a Python callback function that loads the dataframe using Pandas, and then converts it to Polars.

jetuk commented 1 month ago

This worked fine for me when running the tests with my virtual environment activated. However, I appreciate that may not be working for everyone. The CI has the same issue with the Rust workflows not having the correct Python libraries available.

If this is to go ahead we might need to merge the workflows or only run some of the tests in the Python workflows.

One general option is to add a "python" feature to the schema crate that would include things like this Pandas support.

jetuk commented 1 month ago

What do you think is the best way forward with this?