The Python Oracle

How can I change name of arbitrary columns in pandas df using lambda function?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: City Beneath the Waves Looping

--

Chapters
00:00 Question
01:14 Accepted answer (Score 18)
01:29 Thank you

--

Full question
https://stackoverflow.com/questions/1677...

Accepted answer links:
[ternary operator]: http://docs.python.org/2.5/whatsnew/pep-...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #lambda #pandas #rename

#avk47