Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
def parse_price(price_text):
price_text = price_text.replace('€', '')
price_text = price_text.replace('EUR', '')
price_text = price_text.strip()
price_text = price_text.replace('.', '')
price_text = price_text.replace(',', '.')
return float(price_text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.