Python suprimem avisos em função
import warnings
warnings.filterwarnings("ignore")
Busy Boar
import warnings
warnings.filterwarnings("ignore")
import warnings
def fxn():
warnings.warn("deprecated", DeprecationWarning)
with warnings.catch_warnings():
warnings.simplefilter("ignore")
fxn()