I am seeking to drop some rows from a DataFrame based on two conditions needing to be met in the same row. So I have 5 columns, in which; if two columns have equal values (code1 and code2) AND one other column (count) is greater than 1, then when these two conditions are met in the same row - the column is dropped. 

I could alternatively keep columns that meet the conditions of: 

```
count == 1 'OR' (as opposed to AND) df_1.code1 != df_1.code2

```

In terms of the first idea what I am thinking is:

```
df_1 = '''drop row if''' [df_1.count == 1 & df_1.code1 == df_1.code2] 

```

Here is what I have so far in terms of the second idea;

```
df_1 = df_1[df_1.count == 1 or df_1.code1 != df_1.code2] 

```