Mantenga solo entradas min en DataFrame agrupada por una columna

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