Aurele Ferotin

Results 48 comments of Aurele Ferotin

We should add a test for this adding multiple indicies on one column. And for other vendors as well

You can already do that with [`sort_by`](https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.sort_by.html): ```py house_prices.select(pl.col("bedrooms").sort_by("prices").first()) ```

> ```py > df.select(pl.all().get(pl.col.price.arg_max())) > ``` Oh, that's even better.

This should have been fixed by https://github.com/pola-rs/polars/pull/23588

There is a way to emulate `overlay` with the current API: ```python def overlay(left, right): return ( left.sjoin(right.assign(right_geometry=right.geometry)) .assign(geometry=lambda x: x.geometry.intersection(x.right_geometry)) .drop(columns="right_geometry") ) ```