After scraping the website, I have a column Price.
5 € 9.500,00
7 € 2.950,00
8 € 5.750,00
11 € 64.718,00
14 € 4.800,00
...
3050 € 8.099,00
3051 € 12.500,00
3052 € 16.900,00
3054 € 699,00
3059 € 6.500,00
dtype: object
I have tried to drop Euro sign and convert it to float with a standard str.replace.astype(float) function, but it yielded mistakes.
I have found another possibility here with:
locale.setlocale(locale.LC_ALL,'')
df3['Price']=df3.Price.map(lambda x: locale.atof(x.strip('€')))
However, I have now a problem that dots now and prices are now incorrectly reflected for my further analysis:
5 9.500
7 2.950
8 5.750
11 64.718
14 4.800
...
3050 8.099
3051 12.500
3052 16.900
3054 69900.000
3059 6.500
dtype: float64