4

I have a pandas dataframe called df.

Doing a standard SQL query using pandasql. However, it gives me the following error:

ObjectNotExecutableError: Not an executable object: 'SELECT * FROM df'

from pandasql import sqldf
q1 = """SELECT * FROM df"""
sqldf(q1, globals())
Katsu
  • 8,479
  • 3
  • 15
  • 16

1 Answers1

5

in my case pip install SQLAlchemy==1.4.46 and restart kernel solved the issue.

  • that didnt work because i am using `from pandasql import sqldf`? are you using a different package? – Katsu Apr 15 '23 at 02:37