Open paulpalmieri opened 4 months ago
import sqlite3 import pandas as pd
conn = sqlite3.connect('lavague_logs.db')
df = pd.read_sql('SELECT * FROM Logs', conn)
- Add the code to reinflate some columns, such as engine logs:
import ast ast.literal_eval(df.iloc[-1]["engine_log"])
- export of screenshots did not work, find out how to make it work and add to docs. we may need to first convert to something like byte array before logging to the DB
Connect to the SQLite database
conn = sqlite3.connect('lavague_logs.db')
Read data from a table into a DataFrame
df = pd.read_sql('SELECT * FROM Logs', conn)
import ast ast.literal_eval(df.iloc[-1]["engine_log"])