I am reading a text file titled "sample.txt" with 2 columns of data as follows.
ID Type
1 A
2 B
3 A
4 C
5 A
Now,
1) I want to only return rows whose 'Type' column value is 'A' and
2) I want to only return rows whose 'Type' column value is not 'A'.
Can anyone help me understand how this can be done in python? Thanks.