How to Fix AttributeError: ‘OptionEngine’ object has no attribute ‘execute’ in Pandas

Fixing AttributeError raised when calling pandas' read_sql_query with SQLAlchemy v2.0.0

Giorgos Myrianthous
Level Up Coding
Published in
4 min readFeb 12, 2023

--

Photo by Esteban Lopez on Unsplash

Recently, I’ve came across many Python developers complaining about an error raised when attempting to call pandas function read_sql_query() that is used to read a SQL query…

--

--

I strive to build data-intensive systems that are not only functional, but also scalable, cost effective and maintainable over the long term.