I have a column that has entries that look like this
df
price
0 42000SEK
1 1200EUR
2 2200EUR
I want to convert the entires that have Euros to SEK(swedish krona) and remove both SEK and EUR so i end up with this. (lets for simplicity say 1 EUR = 10 SEK)
['42000']
['12000']
['22000']
With this line of code i can find the rows that has Euros.
df[df.price.str.contains('EUR')]
but i dont know how to continue from here.
I could use this answer
Pandas DataFrame currency conversion
if i could split on first letter in the cell but i cant figure out how to do that.