# This filters ALL warnings, but you can also filter by category import warnings warnings.filterwarnings("ignore") # Filtering by category: warnings.filterwarnings("ignore",category=DeprecationWarning)