deprecationwarning python code example Example: ignoring warnings import warnings warnings.filterwarnings(action= 'ignore')