AdrianAntico / QuickEcharts

Fast and easy echarts with polars backend for wrangling and a simple API
GNU Affero General Public License v3.0
14 stars 0 forks source link

Quicker Echarts by "Polarizing" more expressions #1

Open abstractqqq opened 1 week ago

abstractqqq commented 1 week ago

I noticed there are lots of inefficient handling of data using Python right now, despite having Polars's expressions that can handle the operations, e.g.

max(dt1[YVar].max(), dt1[XVar].max(), dt1[ZVar].max())

dt.with_columns(pl.col(YVar).map_elements(math.sqrt))

which can be replaced by native Polars expressions. I am opening this issue so that (1) I will remind myself to make a PR and change as much as possible, and (2) We can start by writing more Polars expressions instead of Python in future features

AdrianAntico commented 1 week ago

This sounds great!