Answers for "how to replace data format of a certain column in python"

20

replace column values pandas

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

column.replace

df.column = df.coloumn.replace('old_value', 'new_value')
Posted by: Guest on January-26-2021

Code answers related to "how to replace data format of a certain column in python"

Python Answers by Framework

Browse Popular Code Answers by Language