“Pandas renomearam valores de índice” Respostas de código

Pandas Renomear Índice

df.index = df.index.rename('new_index_name')

# Source: https://pandas.pydata.org/docs/reference/api/pandas.Index.rename.html
D Goglia

Python - Dê um nome para a coluna de índice

df.index.name                      # Show me the current name
df.index.name = 'my_column_name'   # Change the index name to my_column_name
Andrea Perlato

Pandas renomearam valores de índice

df.rename(index={'alpha': 'mu'})
Jealous Jay

Respostas semelhantes a “Pandas renomearam valores de índice”

Perguntas semelhantes a “Pandas renomearam valores de índice”

Mais respostas relacionadas para “Pandas renomearam valores de índice” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código