<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
I am performing a query on a DataFrame:
<ASSISTANT_TASK:>
Python Code:
import pandas as pd
df=pd.DataFrame({"Category":['Foo','Bar','Cho','Foo'],'Index':[1,2,3,4]})
filter_list=['Foo','Bar']
def g(df, filter_list):
    return df.query("Category != @filter_list")
result = g(df.copy(), filter_list)
<END_TASK>