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