I have a Pandas Dataframe such as:
Column_1 Column_2 Column_3 Column_4
0. a d d1 d2
1. b e e1 e2
and I need to make all possible combinations of Column_1 and Column_2 such that Column_3 and Column_4's values remain the same as the row that contains Column_2. This should be the output:
Column_1 Column_2 Column_3 Column_4
0. a d d1 d2
1. a e e1 e2
2. b d d1 d2
3. b e e1 e2
Can anybody help me out with this?