Answers for "replace value in column dataframe python"

15

replace column values pandas

df['column'] = df['column'].str.replace(',','-')
df
Posted by: Guest on February-25-2020
12

replacing values in pandas dataframe

df['coloum'] = df['coloum'].replace(['value_1','valu_2'],'new_value')
Posted by: Guest on May-11-2020
0

dataframe change specicf values in column

df['column name'] = df['column name'].replace(['old value'],'new value')
Posted by: Guest on September-22-2021

Code answers related to "replace value in column dataframe python"

Python Answers by Framework

Browse Popular Code Answers by Language