I have four lists. Two are category lists, one is a list of permutations of the two categories, and the last is a value for each permutation.
For example:
cat1 = [red, green, blue, yellow]
cat2 = [round, square, hard, soft]
permutation = ['red round', 'red square', 'red hard', 'red soft' ....]
values = [8, 10, 9, 14...]
The numbers in values align with permutation. That is to say, the value of 'red round' is 8, 'red square' is 10, etc.
My lists are long and so this information isn't very easily visualized in list form. Is there a way to create a table so that the two categories are the rows and columns and my permutation data fills in the cells?
What I want is:
red green blue yellow
round 8
square 10
hard 9 ...
soft 14
I have no idea how to even start this, so I don't have any example code, but any pointers or suggestions to the right direction would be very helpful.
Note: I checked out this: Formatting output as table However, I'm not sure how to adapt it to my situation when I don't have a pre-made list containing all of the information together.