home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 1059652538

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/sqlite-utils/issues/412#issuecomment-1059652538 https://api.github.com/repos/simonw/sqlite-utils/issues/412 1059652538 IC_kwDOCGYnMM4_KQO6 9599 2022-03-05T02:13:17Z 2022-03-05T02:13:17Z OWNER > It looks like the existing `pd.read_sql_query()` method has an optional dependency on SQLAlchemy: > > ``` > ... > import pandas as pd > pd.read_sql_query(db.conn, "select * from articles") > # ImportError: Using URI string without sqlalchemy installed. > ``` Hah, no I was wrong about this: SQLAlchemy is not needed for SQLite to work, I just had the arguments the wrong way round: ```python pd.read_sql_query("select * from articles", db.conn) # Shows a DateFrame ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1160182768  
Powered by Datasette ยท Queries took 0.899ms