DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Rename columns
# 20. Rename a column
df
.
rename
(
columns
=
{
"Airline"
:
"Airline_Code"
,
"AirportFrom"
:
"Airport_From"
}
)
Source by jyoti05iitd.medium.com #
PREVIOUS
NEXT
Tagged:
#Rename
#columns
ADD COMMENT
Topic
COMMENT
Name
4+6 =
Submit