Previously, to extract a row with the minimum or maximum value relative to another column, you usually had to do sorting, groupby, or set up more complex filters.
In Polars v1.37.0, the
min_by and max_by expression methods have been introduced. They find the minimum or maximum value for any column with a single, understandable expression. To update and get
min_by/max_by:pip install -U polars••••••••••••••••••••••••••••••••••••••••••••••••••••
🤖 Data Science, ML & Big Data with @DataXplore
