একটি ডিপ্রিকেটেড মেথড ব্যবহার করার সময় আসা ডিপ্রিকেশন ওয়ার্নিং ফিক্স করতে, আমরা কোডে 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