When I try reading the data from a mysql database using pandas.read_sql() it gives me the error:
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. df = pd.read_sql_query(q, mydb)
When printing the dataframe it will still contain the correct data however I am worried that this may cause issues in the future.
Is there anyway to overcome this? and is this error any significance.
I did read into SQLAlchemy engines but I am unsure of how to use an engine with mysql.connector and dont fully understand the purpose of the engine.