I have a data frame named df1 in python code:
    SYMBOL    TYPE          DATE       VALUE
0    ABC     Normal       29-03-2018     100
1    DEF     Artificial   30-03-2018      96
2    DEF     Normal       01-04-2018     105
and 5000 such rows
I want to delete rows containing TYPE = Artificial I wrote the following code but it gives an error
for i in df1:
    if df1['trade_type'] == 'Artificial':
        del df1[i]
print(df1)
It gives error as:
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
 
     
     
    