I have a dataframe like so.
id K V
0 1 k1 3
1 1 k2 4
2 1 k2 5
3 1 k1 5
4 2 k1 2
5 2 k1 3
6 2 k2 3
And i also have a set of conditions like k1 > 1 and k2 < 4.
I want to process the conditions and create a new dataframe containing 1 row per id and columns for each conditions.
id k1_condition k2_condition
0 1 True False
1 2 True True