Consider you have the following code:
import pandas as pd
pd.read_sql("SELECT * FROM foo_schema.run_info WHERE id=:param order by run_id desc", s.bind, **{'param':5})
Whereas s.bind
is sqlchemy
's engine object.
I get the following error:
{TypeError}read_sql() got an unexpected argument 'param'
what is wrong with my function call?