import warnings from sqlalchemy.exc import SAWarning warnings.filterwarnings("ignore", category=SAWarning)