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.kite.com #
 
PREVIOUS NEXT
Tagged: #change #values #dataframe #python
ADD COMMENT
Topic
Name
4+8 =