[Python] pandas equivalent of R's make.names

Discussão em 'Python' iniciado por Stack, Maio 30, 2025.

  1. Stack

    Stack Membro Participativo

    R has a very useful function make.names that can change the names of a column to be well-behaved AND unique. I have a situation where I am reading data from a csv file and there can be multiple columns with the same name. R's make.names function can give unique names by appending .1 , .2 to the names etc.

    Is there a similar function in python / pandas?

    Continue reading...

Compartilhe esta Página