Answers for "change value in data frame in pandas"

1

how to change values in dataframe python

energy['Country'] = energy['Country'].replace(['Afghanistan','Albania'],['Sa','lol'])
Posted by: Guest on February-10-2022
0

dataframe change column value

df["column1"].replace({"a": "x", "b": "y"}, inplace=True)
Posted by: Guest on July-05-2021

Code answers related to "change value in data frame in pandas"

Python Answers by Framework

Browse Popular Code Answers by Language