Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change values in dataframe python

energy['Country'] = energy['Country'].replace(['Afghanistan','Albania'],['Sa','lol'])
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #change #values #dataframe #python
ADD COMMENT
Topic
Name
5+2 =