I need to extract certain rows from my dataset. The indeces of the rows I need are detected from another column in another variable. My dataframe is something like (with more columns)
1 data1
2 data2
3 data3
4 data4
5 data5
My other column is another variable and it's like
1 true
2 false
3 true
4 false
5 false
I put a boolean, moreover I need to check values in my column that satisfy a condition, I need those indeces and then I want to extract rows with those indeces from my dataset.