Olá!
Após executar o comando dados.to_sql('clientes', engine, index=False)
obtive o seguinte warning:
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)
E o seguinte erro:
AttributeError: 'Engine' object has no attribute 'cursor'
Obs:
- Estou realizando o curso usando o VS Code na minha máquina.
- A versão do sqlalchemy instalada é a 1.4.52.
- A engine foi criada como na aula, utilizando o comando
engine = create_engine('sqlite:///:memory:')
. - Já reiniciei o notebook porém o erro continua.