How to ignore deprecation warnings in Python

You should just fix your code but just in case,

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

Leave a Comment