I have a column that contains numbers and strings. I want to find the cell that starts with '0' and replace it with Unknown
column1
12 - abcsffj
40 - dhjsadjal
0 - dahdalk
70 - dkalskda
I tried using .loc and contains but it also changed the cells that had 70 and 40 values.
df.loc[df['column1'].str.contains('0'), 'column1'] = 'Unknown'
Expected output
column1
12 - abcsffj
40 - dhjsadjal
Unknown
70 - dkalskda