Guys, importing data from CSV, amongst them there is a field which contain a price but the price is not just a numbers but also currency sign.
So I was trying to remove this sign using replace, trim, re etc but it won't go away :)
The reason why I would like to remove is the field total_price is a float type so I can't write non float values.
How can I do it, how to remove it ?
if record.total_price:
total_price = record.total_price.replace('£','')
print ' Total price :',total_price
if record.vat_rate:
vat_rate = record.included_vat_rate
print ' VAT rate :',vat_rate