I have this Dataset:
NAME VALUE1 VALUE2
0 Alpha 100 A1
1 Alpha 100 A1
2 Alpha 200 A2
I want to run a script that finds which patterns are in the dataset. For example in this particular dataset the rules it will find are:
1)IF NAME = ALPHA & VALUE1 = 100, THEN VALUE2 = A1
2)IF NAME = ALPHA & VALUE1 = 200, THEN VALUE2 = A2
I know that each column and row value will have to be compared like so...
ALPHA 100
ALHA 100
ALPHA 200
ALPHA A1
ALPHA A1
ALPHA A2
100 A1
100 A1
200 A2
ALPHA 100 A1
ALPHA 100 A1
ALPHA 200 A2
"ALPHA 100", can't be correct because "ALPHA 200" exists, same for "ALPHA A1" since "ALPHA A2" exists.
"100 A1" and "200 A2", are correct, but "ALPHA 100 A1", and "ALPHA 200 A2" are stronger variations and therefore are the ones printed out.
How could I go about this?