-
Notifications
You must be signed in to change notification settings - Fork 1
/
stack-1.html
69 lines (69 loc) · 2.8 KB
/
stack-1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html>
<head>
<script src='anim.js'></script>
<script>
window.addEventListener( 'load', function () {
addBoxes(
'', 0, 0, 0, 0, { w1 : 2, w2 : 2 },
'', 2, 0, -1000, 0,
'', 3, 1, 2, 2, { w1 : 2 },
'', 3, 1, 3, 2, { w1 : 2 },
'', 5, 1, 4, 2, { w1 : 2 },
'', 5, 1, 5, 2, { w1 : 2 },
'', 3, 1, 6, 2, { w1 : 2 },
'', 3, 1, 7, 2, { w1 : 2 },
'', 5, 1, 8, 2, { w1 : 2 },
'', 5, 1, 9, 2, { w1 : 2 },
'Month', 0, 1, 0, 2, { w1 : 2, w2 : 2 },
'Week', 2, 1, 0, 1, { w2 : 2 },
'Temperature', 3, 0, 2, 0, { w1 : 2, w2 : 4 },
'Humidity', 5, 0, 6, 0, { w1 : 2, w2 : 4 },
);
setColor( '#dddddd' );
addBoxes(
'January', 0, 2, 0, 3, { h1 : 4, w1 : 2, w2 : 2 },
'February', 0, 6, 0, 4, { h1 : 4, w1 : 2, w2 : 2 },
);
setColor( '#ddffdd' );
addBoxes(
'1', 2, 2, 2, 1,
'2', 2, 3, 3, 1,
'3', 2, 4, 4, 1,
'4', 2, 5, 5, 1,
'1', 2, 6, 6, 1,
'2', 2, 7, 7, 1,
'3', 2, 8, 8, 1,
'4', 2, 9, 9, 1,
);
setColor( '#ddddff' );
addBoxes(
'31', 3, 2, 2, 3, { w1 : 2 },
'29', 3, 3, 3, 3, { w1 : 2 },
'26', 3, 4, 4, 3, { w1 : 2 },
'27', 3, 5, 5, 3, { w1 : 2 },
'25', 3, 6, 2, 4, { w1 : 2 },
'19', 3, 7, 3, 4, { w1 : 2 },
'22', 3, 8, 4, 4, { w1 : 2 },
'25', 3, 9, 5, 4, { w1 : 2 },
);
setColor( '#ffffdd' );
addBoxes(
'15', 5, 2, 6, 3, { w1 : 2 },
'20', 5, 3, 7, 3, { w1 : 2 },
'5', 5, 4, 8, 3, { w1 : 2 },
'14', 5, 5, 9, 3, { w1 : 2 },
'9', 5, 6, 6, 4, { w1 : 2 },
'14', 5, 7, 7, 4, { w1 : 2 },
'20', 5, 8, 8, 4, { w1 : 2 },
'19', 5, 9, 9, 4, { w1 : 2 },
);
} );
</script>
</head>
<body>
<h1>Unstack</h1>
<pre>df.unstack( level=1 )</pre>
<p>(The reverse operation is stack.)</p>
<hr/>
</body>
</html>