The column("TYPE) contains "IL", "FC", "DT", "MB".
test_data = test_data.drop(test_data[test_data.Type !='IL', 'FC'])
The column("TYPE) contains "IL", "FC", "DT", "MB".
test_data = test_data.drop(test_data[test_data.Type !='IL', 'FC'])
Let's say that your dataframe has the index column and the TYPE column only
data = {'TYPE':['IL', 'FC', 'DT', 'MB']}
df = pd.DataFrame(data)
df
TYPE
0 IL
1 FC
2 DT
3 MB
If you want to delete DT, MB rows (2,3) then you can choose one of the following (not the only ones) :
df1 = df[:2]
df1
TYPE
0 IL
1 FC
df.drop(df.index[[2,3]], inplace = True)
df2 = df[(df['TYPE']!='DT') & (df['TYPE']!='MB')]
df2
TYPE
0 IL
1 FC