mesmo com a versao do sqlalchemy 1.4..54 instalada continua dando esse erro
<ipython-input-8-ca1f70db2d65>:1: UserWarning: pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.
dados.to_sql('clientes', engine, index=False)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-8-ca1f70db2d65> in <cell line: 1>()
----> 1 dados.to_sql('clientes', engine, index=False)
7 frames
/usr/local/lib/python3.10/dist-packages/pandas/io/sql.py in execute(self, sql, params)
2670 raise TypeError("Query must be a string unless using sqlalchemy.")
2671 args = [] if params is None else [params]
-> 2672 cur = self.con.cursor()
2673 try:
2674 cur.execute(sql, *args)
AttributeError: 'Engine' object has no attribute 'cursor'