DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
df rename columns
df
.
rename
(
columns
=
{
'col1'
:
'new_name'
,
'col2'
:
'newcol2'
,
'col3'
:
'newcol3'
}
,
inplace
=
True
)
Source by www.geeksforgeeks.org #
PREVIOUS
NEXT
Tagged:
#df
#rename
#columns
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit