File size: 601 Bytes
17c0dad
 
 
 
 
 
1b707be
17c0dad
 
 
b682ac6
 
 
1b707be
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
title: Ward Ranking Cleaner
emoji: 🎲
colorFrom: pink
colorTo: blue
sdk: gradio
sdk_version: "4.44.1"
app_file: app.py
pinned: false
---

# Ward Ranking Cleaner & Random Assigner (Gradio)

- Auto-detect column mapping (Thai/English keywords + fuzzy)  
- Or map by **column numbers** based on the "Available columns" list  
- Clean to keep only `NAME`, `ID`, and selected ward ranking columns (parse ranks β†’ ints)  
- Assign students by rank round (1β†’2β†’3…) with random tie-breaking, respecting **capacity**  
- Pre-check: `#students <= total capacity` (shortage allowed, **not exceed**)