I would like to drop some rows that meets certain conditions but I do not want to drop the first row even if the first row meets that criteria.
I tried dropping rows by using the df.drop function but it will erase the first row if the first row meets that condition. I do not want that.
Data looks something like this:
Column1 Column2 Column3
1 3 A
2 1 B
3 3 C
4 1 D
5 1 E
6 3 F
I want to do it in a way that if a row has a value of 3 in column2 then drop it.
And I want the new data to be like this (after dropping but keeping the first one even though the first row had a value of 3 in column 2):
Column1 Column2 Column3
1 3 A
2 1 B
4 1 D
5 1 E