In a python dataframe, I have a result set like this – How do I extract all values between the min and max where the flag is 1? Looking to use the result set as filters for another query.
Result set would be 1,2,3,4,5,6,7,8,9,16,17,18,19,20,21,22,23,24,25