I have the following python code which is part of a larger for loop, where I am inserting latlon data along with weather data for future inspection. Note that I am checking if the data at that iteration is float64 (since it could also be masked, where I'd rather skip).
values = (lat_db,lon_db,sst_db)
if type(sst_db) != numpy.float64:
continue
c.executemany('INSERT INTO current VALUES(?,?,?)',values)
The table itself was created through these lines:
conn = sqlite3.connect('sst.db')
c = conn.cursor()
# Create the database table.
c.execute('''CREATE TABLE current
(lat real, lon real, sst real)''')
Upon running my script, I get the following error:
c.executemany('INSERT INTO current VALUES(?,?,?)',values)
ValueError: parameters are of unsupported type