Skip to content

Commit cfcd816

Browse files
authored
update 20k club script to use polars (#1037)
I've been using these updates for a while but never committed them.
1 parent d6b202c commit cfcd816

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

make_release/20k_club.nu

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ def get_pr_counts [debug_csv: bool, repos_root_folder = '/Users/fdncred/src'] {
7979
append (open vscode.csv)
8080
)
8181

82-
let data_dfr = ($data | dfr into-df)
83-
$data_dfr |
84-
dfr group-by name |
85-
dfr agg [(dfr col commits | dfr sum | dfr as "all_commits")] |
86-
dfr collect |
87-
dfr sort-by all_commits |
88-
dfr reverse |
89-
dfr into-nu |
90-
first 50
82+
let data_polars = ($data | polars into-df)
83+
$data_polars |
84+
polars group-by name |
85+
polars agg [(polars col commits | polars sum | polars as "all_commits")] |
86+
polars collect |
87+
polars sort-by all_commits |
88+
polars reverse |
89+
polars into-nu |
90+
first 75
9191
}
9292
}
9393

0 commit comments

Comments
 (0)