I have the following dataframe
A B ...
0 1 1
1 1 2
2 1 3
0 2 1
1 2 2
2 2 3
And I would like to check if the dataframe is a complete combination of the entries in each column. In the above dataframe this is the case. A = {1,2} B = {1,2,3} and the dataframe contains all possible combinations. Following example would result in a false.
A B
0 1 1
1 1 2
0 2 1
The number of columns should be flexible.
Many thanks for your help!