It\'s annoying how Python\'s sqlite3 module always returns a list of tuples! When I am querying a single column, I would prefer to get a plain list.
e.g. when I exec
I use the module pandas to deal with table-like content:
df = pd.DataFrame(cursor.fetchall(), columns=['one','two'])
The list of values for column 'one' is simply reffered as:
df['one'].values
You even can use you own index for the data referencing:
df0 = pd.DataFrame.from_records(cursor.fetchall(), columns=['Time','Serie1','Serie2'],index='Time')