[Python] Find the maximum value from several columns and return its corresponding column name...

Discussão em 'Python' iniciado por Stack, Fevereiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to find the highest year with the most births for each state (there are 5 different columns for years i'e 2016, 2017 etc) and I need to make a new column for each state to show the name of the column with the highest births. How do I do that?

    I have tried group by etc

    Continue reading...

Compartilhe esta Página