How to remove specific rows from a dataframe satisfying multiple conditions (python pandas)

welcome to shbcf.ru