How to ignore some columns while filtering dataframe

I have a dataframe that contains multiple fields and i want to take the user input and perform a filter based on the user input, for that i am displaying many widgets for multiple columns
where the user can input a text or select from selectbox or multiselect or slider
where each widget is for some columns.

I have 2 sliders that the user can choose from it the start year and the end year, but also he can ignore and filter using other widget.

The problem is even if the user doesn’t use these widgets the system take the displayed input as a value and return a wrong answer.

My question is how to ignore some columns while filtering ??