📜  读取数据库 pandas - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:18.105000             🧑  作者: Mango

代码示例1
from sqlalchemy import create_engine

engine = create_engine("sqlite:///data.db")

query = """
SELECT * 
  FROM weather;
"""

weather = pd.read_sql(query, engine)