I\'m getting a weird error when inserting some data from a Python script to MySQL. It\'s basically related to a variable being blank that I am inserting. I take it that MyS
Why not set the variable equal to some string like 'no price' and then filter this out later when you want to do math on the numbers?
'no price'
filter(lambda x: x != 'no price',list_of_data_from_database)