I want to hide this warning UserWarning: pandas only support SQLAlchemy connectable(engine/connection) ordatabase string URI or sqlite3 DBAPI2 connectionother DBAPI2 objects are not tested, please consider using SQLAlchemy
and I've tried
import warnings
warnings.simplefilter(action='ignore', category=UserWarning)
import pandas
but the warning still shows.
My python script read data from databases. I'm using pandas.read_sql
for SQL queries and psycopg2
for db connections.
Also I'd like to know which line triggers the warning.