# Below code only shows rows where the column 'D' values are greater than 5
data = pd.read_excel("TABLE.xlsx", usecols='D,E,F')
selected_rows = data[data['D'] > 5]
This is for selecting from D column.Similarly, use other indexing based on your requirement.
You can also use other boolean operators (<, >=, <=, ==, !=, etc.) to select rows based on different criteria, and combine multiple conditions using logical operators (& , | , ~ ).
Check this link for more help about boolean indexing
Logical operators for Boolean indexing in Pandas