I would like to use a couple of columns as row ID while taking count of grouping based on Time. Look at below illustration:
X Y Z Time
0 1 2 10
0 2 3 10
1 0 2 15
1 0 0 23
Transforms into this:
Category Count Time
X 0 10
X 1 15
X 1 23
Y 3 10
Y 0 15
Y 0 23
Z 5 10
Z 2 15
Z 0 23
What is happening is that X occur 0 times for the time 10 but 1 time for 15 and 23.
Y occur 3 times at 10'clock but none at 15 and 23. etc.