बहिष्कृत विधि का उपयोग करते समय आने वाली बहिष्करण चेतावनी को ठीक करने के लिए, हम warnings.filterwarnings("ignore") का उपयोग कर सकते हैं कोड में।-
उदाहरण
from matplotlib import pyplot as plt, pylab as pl
import warnings
plt.rcParams["figure.figsize"] = [7.50, 3.50]
plt.rcParams["figure.autolayout"] = True
warnings.filterwarnings("ignore")
pl.pause(0)
plt.show() आउटपुट
Process finished with exit code 0