Scripting >> Python >> Examples >> Warnings >> How to disable specific warnings such as DeprecationWarning



import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)