mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-27 15:55:00 +00:00
![]() # Context: USER: sort the grouped columns by descending average ASSISTANT: To sort the grouped columns by descending average, we need to modify the `show_stats` function in the `benchmark/benchmark.py` file. Specifically, we need to sort the `df_grouped` DataFrame by its values in descending order. Here is the change: ```python benchmark/benchmark.py <<<<<<< ORIGINAL df_grouped = df.groupby(["model", "edit_format"])["pass_rate_1"].mean() ======= df_grouped = df.groupby(["model", "edit_format"])["pass_rate_1"].mean().sort_values(ascending=False) >>>>>>> UPDATED ``` This change will sort the grouped DataFrame `df_grouped` by its values in descending order. The `ascending=False` argument in the `sort_values` function ensures that the sorting is done in descending order. |
||
---|---|---|
.. | ||
__init__.py | ||
benchmark.py | ||
docker.sh | ||
docker_build.sh | ||
Dockerfile | ||
prompts.py | ||
test_benchmark.py |