Commit a50dcc6
committed
Refactor rank_array_element_metrics to restore original keys and improve rank annotation handling
- Updated the `rank_array_element_metrics` function to return the table with its original key restored after ranking.
- Enhanced the rank annotation process to use `or_missing` for unranked rows, ensuring correct typing without manual struct construction.
- Simplified the rank lookup and annotation logic for better readability and maintainability.1 parent 74d2de5 commit a50dcc6
1 file changed
+20
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2918 | 2918 | | |
2919 | 2919 | | |
2920 | 2920 | | |
2921 | | - | |
2922 | | - | |
| 2921 | + | |
2923 | 2922 | | |
| 2923 | + | |
2924 | 2924 | | |
2925 | 2925 | | |
2926 | 2926 | | |
| |||
2952 | 2952 | | |
2953 | 2953 | | |
2954 | 2954 | | |
2955 | | - | |
2956 | | - | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
2957 | 2959 | | |
2958 | 2960 | | |
2959 | | - | |
2960 | | - | |
2961 | | - | |
2962 | | - | |
2963 | | - | |
2964 | | - | |
2965 | | - | |
2966 | | - | |
2967 | | - | |
2968 | | - | |
2969 | | - | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
| 2971 | + | |
| 2972 | + | |
2970 | 2973 | | |
2971 | | - | |
| 2974 | + | |
2972 | 2975 | | |
2973 | | - | |
| 2976 | + | |
0 commit comments