Answers for "change pandas string value to another"

1

change value to string pandas

mtrx['X.3'] = mtrx['X.3'].astype(str)
Posted by: Guest on April-04-2020
1

pandas replace string with another string

df['prod_type'] = df['prod_type'].replace({'respon':'responsive', 'r':'responsive'})
Posted by: Guest on June-10-2021

Code answers related to "change pandas string value to another"

Python Answers by Framework

Browse Popular Code Answers by Language