📜  将 sqlite 表转换为 pandas 数据框 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:29.589000             🧑  作者: Mango

代码示例1
import sqlite3
import pandas as pd

dat = sqlite3.connect('data.db')
query = dat.execute("SELECT * From ")
cols = [column[0] for column in query.description]
results= pd.DataFrame.from_records(data = query.fetchall(), columns = cols)