Fortune Telling Collection - Horoscope - How to rename python's data frame
How to rename python's data frame
Use the rename function
1, the typical data type of a word.
Example:
d? =? {Constellation: Constellation, Height':' Height'}
Df.rename(columns=d)2。 structuralfunctionalism
def? f(x):
Return? x[0]
df.rename(columns=f)
- Related articles
- On the love constellation after breaking up
- Who is one of the twelve constellations?
- What constellation is August _ What constellation is August?
- The twelve constellations are the most powerful and intelligent. Which one is it?
- What constellation is May and the 20th day of the first month in May?
- Teacher Bai's profile, recommend several official WeChat accounts dedicated to writing constellations!
- How high are the little ears of online celebrities?
- A constellation that wants to fall in love but insists on being single.
- Born to love to eat, what constellations can't resist the temptation of food?
- What is the ranking of the Queen of the Twelve Constellations?