I have pandas df which has 7000 rows \* 7 columns. And I have list (row\_list) that consists with the value that I want to filter out from df.
What I want to do is to filter out the rows if the rows from df contain the corresponding value in the list.
This is what I got when I tried,

"Empty DataFrame
Columns: [A,B,C,D,E,F,G]
Index: []"

```
df = pd.read_csv('filename.csv')
df1 = pd.read_csv('filename1.csv', names = 'A')

row_list = []
for index, rows in df1.iterrows():
    my_list = [rows.A]
    row_list.append(my_list)

boolean_series = df.D.isin(row_list)
filtered_df = df[boolean_series]
print(filtered_df)

```