WISDEM / WOMBAT

Windfarm Operations & Maintenance cost-Benefit Analysis Tool
https://wisdem.github.io/WOMBAT/
Apache License 2.0
20 stars 11 forks source link

Swap Pandas out for Polars for simulation-specific tasks #95

Closed RHammond2 closed 1 year ago

RHammond2 commented 1 year ago

Pandas 2.0 has greatly decreased the runtime performance of WOMBAT due to significantly slower indexing and search. Initial tests confirm that Polars is significantly faster at the exact operations required in the simulation, and so it'd be beneficial to convert the weather dataframe, specifically. Below is an example of extracting a single row from the weather profile in both pandas and polars.

image