Dataframe A-
target query. score
SDOIII a 92.8
SDOII a 72.8
SoxH a 66
SDOIII b 67
LbpA1 b 18
SoxH b 12
SoxH a 7
..............
Dataframe B (thresholds)
target threshold
SDOIII 4
SDOII 5
SoxH 6
LbpA1 7
.................
dataframe B has many target variables with their thresholds.
I wish to filter dataframe A based on scores >= the threshold scores based on DataframeB. Can anyone guide me with a code in pyhton/R ?
I tried filtering multiple conditions but not feasible for so many conditions or scores
You can use something like this:
Output: