how to use warnings library to ignore warnings code example
Example 1: python suppress warnings in function
import warnings
warnings.filterwarnings("ignore")
Example 2: ignoring warnings
import warnings
warnings.filterwarnings(action= 'ignore')