This is a simple comparison between Polars and Pandas as used in a Plotly Dash App.
Here's a preview of the app:
Demo: https://dash-polars-pandas-docker.onrender.com/
Note: The app is hosted for free, so it might take a few seconds to load.
This app includes 3 main pages:
- Speed Comparison: An interactive speed comparison between Polars and Pandas. This is not fully optimized or a true benchmark, but it gives a rough idea of the speed difference between the two libraries.
- Polars Dash Recipes: A collection of recipes for using Polars in Dash. The main idea is to explore syntax differences that might be helpful for someone transitioning from Pandas to Polars.
- Minimal Dash App (in Polars): This example is from the Dash documentation, rewritten with Polars instead of Pandas.
To run this app, you need to have Python installed. Then, you can install the required packages by running the following command in your terminal:
pip install -r requirements.txtAfter installing the required packages, you can run the app by running the following command in your terminal:
python app.pyIf you have any suggestions or find any bugs, feel free to message me, open an issue, or create a pull request. Thanks!
