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
@app.route("/query", methods= ["GET", 'POST']) def query(): pysqldf = lambda q: sqldf(q, locals()) csv_data = pd.read_csv('./for_download/for_query.csv', index_col=[0]) query = "select * from csv_data" trows = pysqldf(query)
I can't get the table in this way, and face this error: pandasql.sqldf.PandaSQLException: (sqlite3.OperationalError) no such table: csv_data
The text was updated successfully, but these errors were encountered:
it also doesn't work with globals()
Sorry, something went wrong.
No branches or pull requests
@app.route("/query", methods= ["GET", 'POST'])
def query():
pysqldf = lambda q: sqldf(q, locals())
csv_data = pd.read_csv('./for_download/for_query.csv', index_col=[0])
query = "select * from csv_data"
trows = pysqldf(query)
I can't get the table in this way, and face this error:
pandasql.sqldf.PandaSQLException: (sqlite3.OperationalError) no such table: csv_data
The text was updated successfully, but these errors were encountered: