Python imports SQLite via standard library sqlite3
With executemany a list of tuples can be written to SQLite in bulk.
A numpy array can be converted into a list of tuples with the statement list(map(tuple, array)) which use map to convert each row of array into a tuple.
Python imports SQLite via standard library sqlite3
With
executemany
a list of tuples can be written to SQLite in bulk. A numpy array can be converted into a list of tuples with the statementlist(map(tuple, array))
which usemap
to convert each row of array into a tuple.