We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
With a set up of the form:
PGCONN='sqlite:///test.db' %load_ext sql %sql {PGCONN}
and then:
%%sql DROP TABLE IF EXISTS quickdemo; CREATE TABLE quickdemo(id INT, name VARCHAR(20), value INT);
a query run in Jupyter notebook using pandas that takes the form:
pandas
import sqlite3 c = sqlite3.connect('test.db') import pandas as pd pd.read_sql_query('SELECT * from quickdemo;', c)
returns an empty dataframe that displays the column heading but no rows (as desired).
If I run a magic query:
%%sql SELECT * from quickdemo;
I just get an empty display (no column names shown).
Is there a way of getting an empty dataframe with column names set if a query returns an empty set of results?
The text was updated successfully, but these errors were encountered:
running flake8 on notebooks during CI + formatting (catherinedevlin#125)
877a7ef
* running nbqa during CI, formatting notebooks * linting in two steps
No branches or pull requests
Hi
With a set up of the form:
and then:
a query run in Jupyter notebook using
pandas
that takes the form:returns an empty dataframe that displays the column heading but no rows (as desired).
If I run a magic query:
I just get an empty display (no column names shown).
Is there a way of getting an empty dataframe with column names set if a query returns an empty set of results?
The text was updated successfully, but these errors were encountered: