Mantenha apenas as entradas min no DataFrame agrupadas por uma coluna

I feel like you're overthinking this. Just use groupby and idxmin
Real Raccoon