A call center contacted you because they have several mounths of call history. To better plan their activity, they would like to accurately predict the amount of call they should expect.
The data they provide is gathered in the data/CallCenter
directory. As you see you have one listing per day of the week. The data are formated as follows:
You are hired to give them the probability distribution function of the number of call they expect every day.
You should be able to parametrize it. Also, because they are not statisticien, they want a clear anwser of the 5-95%
and 18-64%
intervals for the number of call expected every half-hour for each day of the week.
In [1]:
# == Basic import == #
# No annoying warnings
import warnings
warnings.filterwarnings('ignore')
# plot within the notebook
%matplotlib inline
In [30]:
## 1 Read the files
import numpy as np
In [155]:
import pandas
In [158]:
p = pandas.read_csv("data/CallCenter/%ss.csv"%"Monday", sep=" ")
In [168]:
d_ = p.to_dict()
In [169]:
d_
Out[169]:
{'10.0': {0: 10.5,
1: nan,
2: 17.0,
3: 16.0,
4: 14.0,
5: 15.0,
6: 20.0,
7: 14.0,
8: 12.0,
9: 15.0,
10: 11.0,
11: 18.0,
12: 15.0,
13: 21.0,
14: 16.0,
15: 16.0,
16: 15.0,
17: 17.0,
18: 20.0,
19: 15.0,
20: 16.0,
21: 14.0,
22: 14.0,
23: 13.0,
24: 9.0,
25: 23.0,
26: 14.0,
27: 18.0,
28: 11.0,
29: 14.0,
30: 12.0,
31: 17.0,
32: 11.0,
33: 16.0,
34: 17.0,
35: 12.0,
36: 15.0,
37: 11.0,
38: 13.0,
39: 13.0,
40: 10.0,
41: 15.0,
42: 11.0,
43: 14.0,
44: 19.0,
45: 12.0,
46: 9.0,
47: 13.0,
48: 15.0,
49: 19.0,
50: 17.0,
51: 11.0,
52: 11.0,
53: 22.0,
54: 10.0,
55: 10.0,
56: 15.0,
57: 16.0,
58: 17.0,
59: 20.0,
60: 10.0,
61: 15.0,
62: 13.0,
63: 15.0,
64: 12.0,
65: 7.0,
66: 14.0,
67: 22.0,
68: 15.0,
69: 16.0,
70: 13.0,
71: 12.0,
72: 7.0,
73: 6.0,
74: 16.0,
75: 15.0,
76: 20.0,
77: 12.0,
78: 17.0,
79: 18.0,
80: 9.0,
81: 6.0,
82: 17.0,
83: 10.0,
84: 16.0,
85: 13.0,
86: 16.0,
87: 11.0,
88: 16.0,
89: 20.0,
90: 21.0,
91: 17.0,
92: 18.0,
93: 15.0,
94: 12.0,
95: 14.0,
96: 15.0,
97: 9.0,
98: 13.0,
99: 11.0,
100: 11.0,
101: 19.0},
'10.5': {0: 11.0,
1: nan,
2: 13.0,
3: 11.0,
4: 10.0,
5: 8.0,
6: 12.0,
7: 23.0,
8: 11.0,
9: 12.0,
10: 13.0,
11: 12.0,
12: 14.0,
13: 10.0,
14: 14.0,
15: 15.0,
16: 21.0,
17: 16.0,
18: 10.0,
19: 15.0,
20: 12.0,
21: 14.0,
22: 13.0,
23: 15.0,
24: 13.0,
25: 11.0,
26: 14.0,
27: 13.0,
28: 21.0,
29: 11.0,
30: 12.0,
31: 9.0,
32: 13.0,
33: 10.0,
34: 17.0,
35: 21.0,
36: 21.0,
37: 6.0,
38: 17.0,
39: 13.0,
40: 17.0,
41: 9.0,
42: 15.0,
43: 13.0,
44: 15.0,
45: 23.0,
46: 11.0,
47: 14.0,
48: 14.0,
49: 17.0,
50: 11.0,
51: 10.0,
52: 14.0,
53: 17.0,
54: 11.0,
55: 9.0,
56: 12.0,
57: 14.0,
58: 13.0,
59: 10.0,
60: 9.0,
61: 15.0,
62: 10.0,
63: 21.0,
64: 10.0,
65: 21.0,
66: 17.0,
67: 12.0,
68: 17.0,
69: 18.0,
70: 15.0,
71: 7.0,
72: 9.0,
73: 14.0,
74: 19.0,
75: 10.0,
76: 11.0,
77: 13.0,
78: 18.0,
79: 10.0,
80: 14.0,
81: 11.0,
82: 20.0,
83: 10.0,
84: 20.0,
85: 16.0,
86: 8.0,
87: 17.0,
88: 16.0,
89: 18.0,
90: 19.0,
91: 16.0,
92: 8.0,
93: 15.0,
94: 16.0,
95: 18.0,
96: 15.0,
97: 19.0,
98: 11.0,
99: 9.0,
100: 16.0,
101: 9.0},
'11.0': {0: 11.5,
1: nan,
2: 11.0,
3: 10.0,
4: 12.0,
5: 8.0,
6: 12.0,
7: 7.0,
8: 7.0,
9: 11.0,
10: 9.0,
11: 10.0,
12: 13.0,
13: 6.0,
14: 10.0,
15: 7.0,
16: 9.0,
17: 9.0,
18: 9.0,
19: 10.0,
20: 12.0,
21: 7.0,
22: 10.0,
23: 12.0,
24: 9.0,
25: 5.0,
26: 5.0,
27: 13.0,
28: 9.0,
29: 10.0,
30: 12.0,
31: 8.0,
32: 7.0,
33: 12.0,
34: 11.0,
35: 6.0,
36: 8.0,
37: 8.0,
38: 13.0,
39: 13.0,
40: 12.0,
41: 7.0,
42: 9.0,
43: 10.0,
44: 10.0,
45: 13.0,
46: 11.0,
47: 10.0,
48: 14.0,
49: 5.0,
50: 14.0,
51: 9.0,
52: 16.0,
53: 7.0,
54: 14.0,
55: 11.0,
56: 9.0,
57: 15.0,
58: 4.0,
59: 12.0,
60: 15.0,
61: 11.0,
62: 13.0,
63: 20.0,
64: 11.0,
65: 12.0,
66: 15.0,
67: 10.0,
68: 8.0,
69: 10.0,
70: 11.0,
71: 11.0,
72: 7.0,
73: 6.0,
74: 10.0,
75: 14.0,
76: 14.0,
77: 16.0,
78: 6.0,
79: 9.0,
80: 10.0,
81: 13.0,
82: 9.0,
83: 14.0,
84: 8.0,
85: 22.0,
86: 12.0,
87: 13.0,
88: 14.0,
89: 9.0,
90: 8.0,
91: 11.0,
92: 13.0,
93: 6.0,
94: 12.0,
95: 6.0,
96: 13.0,
97: 6.0,
98: 11.0,
99: 13.0,
100: 6.0,
101: 15.0},
'11.5': {0: 12.0,
1: nan,
2: 9.0,
3: 9.0,
4: 10.0,
5: 5.0,
6: 7.0,
7: 8.0,
8: 9.0,
9: 6.0,
10: 8.0,
11: 14.0,
12: 11.0,
13: 6.0,
14: 4.0,
15: 9.0,
16: 14.0,
17: 10.0,
18: 8.0,
19: 6.0,
20: 11.0,
21: 7.0,
22: 8.0,
23: 10.0,
24: 12.0,
25: 6.0,
26: 10.0,
27: 7.0,
28: 11.0,
29: 6.0,
30: 9.0,
31: 3.0,
32: 6.0,
33: 9.0,
34: 16.0,
35: 4.0,
36: 11.0,
37: 8.0,
38: 9.0,
39: 4.0,
40: 14.0,
41: 15.0,
42: 6.0,
43: 6.0,
44: 13.0,
45: 9.0,
46: 9.0,
47: 7.0,
48: 11.0,
49: 6.0,
50: 16.0,
51: 12.0,
52: 9.0,
53: 7.0,
54: 9.0,
55: 9.0,
56: 5.0,
57: 9.0,
58: 2.0,
59: 6.0,
60: 6.0,
61: 10.0,
62: 7.0,
63: 8.0,
64: 8.0,
65: 11.0,
66: 4.0,
67: 10.0,
68: 5.0,
69: 9.0,
70: 6.0,
71: 8.0,
72: 7.0,
73: 8.0,
74: 8.0,
75: 7.0,
76: 10.0,
77: 7.0,
78: 11.0,
79: 6.0,
80: 12.0,
81: 9.0,
82: 7.0,
83: 11.0,
84: 10.0,
85: 7.0,
86: 10.0,
87: 9.0,
88: 8.0,
89: 5.0,
90: 6.0,
91: 6.0,
92: 10.0,
93: 7.0,
94: 6.0,
95: 4.0,
96: 7.0,
97: 9.0,
98: 4.0,
99: 5.0,
100: 5.0,
101: 15.0},
'12.0': {0: 12.5,
1: nan,
2: 4.0,
3: 6.0,
4: 5.0,
5: 2.0,
6: 4.0,
7: 3.0,
8: 1.0,
9: 9.0,
10: 6.0,
11: 2.0,
12: 3.0,
13: 3.0,
14: 5.0,
15: 7.0,
16: 8.0,
17: 1.0,
18: 4.0,
19: 3.0,
20: 4.0,
21: 9.0,
22: 3.0,
23: 6.0,
24: 5.0,
25: 5.0,
26: 3.0,
27: 7.0,
28: 8.0,
29: 7.0,
30: 2.0,
31: 1.0,
32: 5.0,
33: 9.0,
34: 7.0,
35: 0.0,
36: 6.0,
37: 6.0,
38: 5.0,
39: 2.0,
40: 6.0,
41: 3.0,
42: 2.0,
43: 6.0,
44: 4.0,
45: 2.0,
46: 1.0,
47: 3.0,
48: 8.0,
49: 6.0,
50: 6.0,
51: 3.0,
52: 0.0,
53: 7.0,
54: 5.0,
55: 7.0,
56: 4.0,
57: 1.0,
58: 5.0,
59: 8.0,
60: 5.0,
61: 6.0,
62: 2.0,
63: 5.0,
64: 7.0,
65: 7.0,
66: 5.0,
67: 5.0,
68: 5.0,
69: 1.0,
70: 5.0,
71: 3.0,
72: 8.0,
73: 4.0,
74: 3.0,
75: 2.0,
76: 4.0,
77: 8.0,
78: 2.0,
79: 3.0,
80: 1.0,
81: 6.0,
82: 3.0,
83: 3.0,
84: 3.0,
85: 6.0,
86: 6.0,
87: 7.0,
88: 4.0,
89: 2.0,
90: 8.0,
91: 4.0,
92: 2.0,
93: 1.0,
94: 2.0,
95: 5.0,
96: 2.0,
97: 2.0,
98: 3.0,
99: 8.0,
100: 5.0,
101: 5.0},
'12.5': {0: 13.0,
1: nan,
2: 9.0,
3: 2.0,
4: 5.0,
5: 4.0,
6: 1.0,
7: 1.0,
8: 2.0,
9: 3.0,
10: 4.0,
11: 5.0,
12: 4.0,
13: 6.0,
14: 5.0,
15: 7.0,
16: 1.0,
17: 8.0,
18: 6.0,
19: 2.0,
20: 4.0,
21: 4.0,
22: 6.0,
23: 2.0,
24: 4.0,
25: 5.0,
26: 4.0,
27: 9.0,
28: 3.0,
29: 4.0,
30: 4.0,
31: 1.0,
32: 4.0,
33: 6.0,
34: 3.0,
35: 4.0,
36: 3.0,
37: 4.0,
38: 5.0,
39: 4.0,
40: 3.0,
41: 4.0,
42: 4.0,
43: 2.0,
44: 5.0,
45: 2.0,
46: 1.0,
47: 2.0,
48: 2.0,
49: 6.0,
50: 3.0,
51: 7.0,
52: 3.0,
53: 6.0,
54: 4.0,
55: 8.0,
56: 4.0,
57: 5.0,
58: 4.0,
59: 4.0,
60: 3.0,
61: 5.0,
62: 6.0,
63: 3.0,
64: 4.0,
65: 2.0,
66: 2.0,
67: 3.0,
68: 3.0,
69: 6.0,
70: 5.0,
71: 9.0,
72: 2.0,
73: 4.0,
74: 5.0,
75: 1.0,
76: 3.0,
77: 5.0,
78: 4.0,
79: 2.0,
80: 1.0,
81: 3.0,
82: 4.0,
83: 4.0,
84: 3.0,
85: 7.0,
86: 4.0,
87: 6.0,
88: 3.0,
89: 4.0,
90: 5.0,
91: 1.0,
92: 2.0,
93: 5.0,
94: 3.0,
95: 3.0,
96: 4.0,
97: 5.0,
98: 3.0,
99: 4.0,
100: 2.0,
101: 7.0},
'13.0': {0: 13.5,
1: nan,
2: 0.0,
3: 1.0,
4: 3.0,
5: 3.0,
6: 0.0,
7: 2.0,
8: 6.0,
9: 2.0,
10: 1.0,
11: 2.0,
12: 5.0,
13: 6.0,
14: 4.0,
15: 1.0,
16: 0.0,
17: 3.0,
18: 3.0,
19: 1.0,
20: 2.0,
21: 2.0,
22: 3.0,
23: 4.0,
24: 1.0,
25: 3.0,
26: 3.0,
27: 6.0,
28: 3.0,
29: 3.0,
30: 2.0,
31: 2.0,
32: 2.0,
33: 8.0,
34: 2.0,
35: 7.0,
36: 3.0,
37: 3.0,
38: 3.0,
39: 3.0,
40: 4.0,
41: 1.0,
42: 3.0,
43: 3.0,
44: 1.0,
45: 4.0,
46: 1.0,
47: 3.0,
48: 2.0,
49: 1.0,
50: 3.0,
51: 4.0,
52: 4.0,
53: 2.0,
54: 1.0,
55: 3.0,
56: 3.0,
57: 3.0,
58: 3.0,
59: 3.0,
60: 3.0,
61: 4.0,
62: 3.0,
63: 3.0,
64: 5.0,
65: 0.0,
66: 2.0,
67: 3.0,
68: 6.0,
69: 5.0,
70: 2.0,
71: 1.0,
72: 2.0,
73: 4.0,
74: 5.0,
75: 3.0,
76: 3.0,
77: 6.0,
78: 7.0,
79: 2.0,
80: 2.0,
81: 6.0,
82: 1.0,
83: 6.0,
84: 2.0,
85: 3.0,
86: 3.0,
87: 2.0,
88: 3.0,
89: 3.0,
90: 2.0,
91: 5.0,
92: 1.0,
93: 4.0,
94: 3.0,
95: 2.0,
96: 6.0,
97: 6.0,
98: 6.0,
99: 1.0,
100: 5.0,
101: 2.0},
'13.5': {0: 14.0,
1: nan,
2: 2.0,
3: 5.0,
4: 1.0,
5: 4.0,
6: 2.0,
7: 2.0,
8: 4.0,
9: 2.0,
10: 2.0,
11: 2.0,
12: 1.0,
13: 3.0,
14: 3.0,
15: 1.0,
16: 1.0,
17: 4.0,
18: 4.0,
19: 3.0,
20: 3.0,
21: 2.0,
22: 4.0,
23: 3.0,
24: 2.0,
25: 6.0,
26: 4.0,
27: 4.0,
28: 3.0,
29: 5.0,
30: 1.0,
31: 5.0,
32: 1.0,
33: 3.0,
34: 3.0,
35: 5.0,
36: 6.0,
37: 3.0,
38: 0.0,
39: 1.0,
40: 2.0,
41: 6.0,
42: 2.0,
43: 3.0,
44: 3.0,
45: 7.0,
46: 4.0,
47: 6.0,
48: 4.0,
49: 4.0,
50: 3.0,
51: 5.0,
52: 0.0,
53: 3.0,
54: 2.0,
55: 3.0,
56: 4.0,
57: 2.0,
58: 3.0,
59: 0.0,
60: 6.0,
61: 2.0,
62: 3.0,
63: 2.0,
64: 4.0,
65: 5.0,
66: 3.0,
67: 0.0,
68: 1.0,
69: 4.0,
70: 2.0,
71: 3.0,
72: 5.0,
73: 3.0,
74: 2.0,
75: 3.0,
76: 3.0,
77: 6.0,
78: 4.0,
79: 9.0,
80: 3.0,
81: 1.0,
82: 3.0,
83: 9.0,
84: 2.0,
85: 2.0,
86: 1.0,
87: 2.0,
88: 0.0,
89: 2.0,
90: 5.0,
91: 2.0,
92: 5.0,
93: 5.0,
94: 4.0,
95: 4.0,
96: 5.0,
97: 2.0,
98: 1.0,
99: 0.0,
100: 3.0,
101: 2.0},
'14.0': {0: 14.5,
1: nan,
2: 4.0,
3: 4.0,
4: 2.0,
5: 8.0,
6: 4.0,
7: 10.0,
8: 3.0,
9: 4.0,
10: 2.0,
11: 7.0,
12: 6.0,
13: 3.0,
14: 7.0,
15: 7.0,
16: 4.0,
17: 5.0,
18: 3.0,
19: 3.0,
20: 5.0,
21: 3.0,
22: 3.0,
23: 5.0,
24: 4.0,
25: 5.0,
26: 5.0,
27: 4.0,
28: 2.0,
29: 8.0,
30: 3.0,
31: 7.0,
32: 3.0,
33: 2.0,
34: 4.0,
35: 6.0,
36: 6.0,
37: 3.0,
38: 7.0,
39: 7.0,
40: 1.0,
41: 5.0,
42: 4.0,
43: 10.0,
44: 5.0,
45: 7.0,
46: 6.0,
47: 2.0,
48: 3.0,
49: 2.0,
50: 5.0,
51: 3.0,
52: 3.0,
53: 6.0,
54: 2.0,
55: 4.0,
56: 1.0,
57: 3.0,
58: 6.0,
59: 1.0,
60: 3.0,
61: 6.0,
62: 4.0,
63: 2.0,
64: 4.0,
65: 0.0,
66: 4.0,
67: 4.0,
68: 5.0,
69: 5.0,
70: 6.0,
71: 6.0,
72: 0.0,
73: 5.0,
74: 3.0,
75: 5.0,
76: 6.0,
77: 5.0,
78: 4.0,
79: 6.0,
80: 7.0,
81: 5.0,
82: 2.0,
83: 4.0,
84: 5.0,
85: 4.0,
86: 4.0,
87: 4.0,
88: 5.0,
89: 1.0,
90: 2.0,
91: 2.0,
92: 2.0,
93: 4.0,
94: 4.0,
95: 3.0,
96: 6.0,
97: 5.0,
98: 2.0,
99: 5.0,
100: 3.0,
101: 4.0},
'14.5': {0: 15.0,
1: nan,
2: 4.0,
3: 7.0,
4: 7.0,
5: 5.0,
6: 13.0,
7: 7.0,
8: 3.0,
9: 4.0,
10: 2.0,
11: 6.0,
12: 3.0,
13: 9.0,
14: 9.0,
15: 3.0,
16: 7.0,
17: 2.0,
18: 5.0,
19: 5.0,
20: 11.0,
21: 8.0,
22: 5.0,
23: 8.0,
24: 4.0,
25: 2.0,
26: 4.0,
27: 7.0,
28: 8.0,
29: 7.0,
30: 7.0,
31: 9.0,
32: 7.0,
33: 7.0,
34: 7.0,
35: 6.0,
36: 3.0,
37: 5.0,
38: 7.0,
39: 3.0,
40: 7.0,
41: 7.0,
42: 3.0,
43: 6.0,
44: 5.0,
45: 9.0,
46: 3.0,
47: 6.0,
48: 9.0,
49: 7.0,
50: 4.0,
51: 8.0,
52: 7.0,
53: 3.0,
54: 5.0,
55: 6.0,
56: 13.0,
57: 5.0,
58: 7.0,
59: 6.0,
60: 9.0,
61: 4.0,
62: 3.0,
63: 4.0,
64: 6.0,
65: 7.0,
66: 10.0,
67: 4.0,
68: 2.0,
69: 6.0,
70: 8.0,
71: 6.0,
72: 8.0,
73: 7.0,
74: 6.0,
75: 4.0,
76: 9.0,
77: 6.0,
78: 3.0,
79: 11.0,
80: 5.0,
81: 10.0,
82: 7.0,
83: 7.0,
84: 2.0,
85: 2.0,
86: 11.0,
87: 5.0,
88: 5.0,
89: 2.0,
90: 6.0,
91: 7.0,
92: 5.0,
93: 6.0,
94: 4.0,
95: 5.0,
96: 1.0,
97: 9.0,
98: 5.0,
99: 9.0,
100: 5.0,
101: 2.0},
'15.0': {0: 15.5,
1: nan,
2: 6.0,
3: 10.0,
4: 14.0,
5: 10.0,
6: 9.0,
7: 10.0,
8: 5.0,
9: 5.0,
10: 5.0,
11: 10.0,
12: 7.0,
13: 4.0,
14: 4.0,
15: 10.0,
16: 12.0,
17: 8.0,
18: 5.0,
19: 11.0,
20: 6.0,
21: 10.0,
22: 6.0,
23: 3.0,
24: 10.0,
25: 9.0,
26: 7.0,
27: 3.0,
28: 5.0,
29: 6.0,
30: 13.0,
31: 3.0,
32: 8.0,
33: 3.0,
34: 6.0,
35: 10.0,
36: 10.0,
37: 8.0,
38: 9.0,
39: 12.0,
40: 3.0,
41: 12.0,
42: 9.0,
43: 9.0,
44: 4.0,
45: 5.0,
46: 4.0,
47: 11.0,
48: 7.0,
49: 5.0,
50: 7.0,
51: 12.0,
52: 11.0,
53: 4.0,
54: 6.0,
55: 5.0,
56: 12.0,
57: 8.0,
58: 12.0,
59: 5.0,
60: 7.0,
61: 8.0,
62: 3.0,
63: 9.0,
64: 10.0,
65: 7.0,
66: 4.0,
67: 12.0,
68: 10.0,
69: 6.0,
70: 13.0,
71: 8.0,
72: 4.0,
73: 11.0,
74: 8.0,
75: 9.0,
76: 3.0,
77: 7.0,
78: 3.0,
79: 5.0,
80: 14.0,
81: 5.0,
82: 8.0,
83: 2.0,
84: 8.0,
85: 4.0,
86: 11.0,
87: 5.0,
88: 9.0,
89: 8.0,
90: 8.0,
91: 5.0,
92: 7.0,
93: 11.0,
94: 8.0,
95: 10.0,
96: 6.0,
97: 11.0,
98: 7.0,
99: 6.0,
100: 10.0,
101: 6.0},
'15.5': {0: 16.0,
1: nan,
2: 8.0,
3: 12.0,
4: 2.0,
5: 5.0,
6: 6.0,
7: 13.0,
8: 8.0,
9: 5.0,
10: 9.0,
11: 8.0,
12: 12.0,
13: 8.0,
14: 9.0,
15: 6.0,
16: 10.0,
17: 15.0,
18: 8.0,
19: 7.0,
20: 16.0,
21: 5.0,
22: 9.0,
23: 2.0,
24: 8.0,
25: 4.0,
26: 6.0,
27: 10.0,
28: 9.0,
29: 11.0,
30: 10.0,
31: 11.0,
32: 5.0,
33: 11.0,
34: 2.0,
35: 7.0,
36: 11.0,
37: 14.0,
38: 3.0,
39: 10.0,
40: 14.0,
41: 6.0,
42: 10.0,
43: 6.0,
44: 10.0,
45: 6.0,
46: 6.0,
47: 12.0,
48: 10.0,
49: 10.0,
50: 4.0,
51: 10.0,
52: 9.0,
53: 11.0,
54: 8.0,
55: 10.0,
56: 4.0,
57: 12.0,
58: 10.0,
59: 8.0,
60: 12.0,
61: 9.0,
62: 10.0,
63: 10.0,
64: 10.0,
65: 10.0,
66: 9.0,
67: 10.0,
68: 7.0,
69: 4.0,
70: 12.0,
71: 12.0,
72: 12.0,
73: 9.0,
74: 9.0,
75: 3.0,
76: 11.0,
77: 13.0,
78: 14.0,
79: 12.0,
80: 6.0,
81: 9.0,
82: 6.0,
83: 15.0,
84: 10.0,
85: 8.0,
86: 7.0,
87: 13.0,
88: 9.0,
89: 8.0,
90: 13.0,
91: 13.0,
92: 10.0,
93: 5.0,
94: 15.0,
95: 8.0,
96: 11.0,
97: 7.0,
98: 9.0,
99: 7.0,
100: 11.0,
101: 7.0},
'16.0': {0: 16.5,
1: nan,
2: 8.0,
3: 14.0,
4: 11.0,
5: 12.0,
6: 14.0,
7: 5.0,
8: 10.0,
9: 12.0,
10: 15.0,
11: 8.0,
12: 5.0,
13: 17.0,
14: 14.0,
15: 2.0,
16: 10.0,
17: 7.0,
18: 16.0,
19: 9.0,
20: 14.0,
21: 15.0,
22: 10.0,
23: 9.0,
24: 13.0,
25: 10.0,
26: 15.0,
27: 10.0,
28: 9.0,
29: 9.0,
30: 9.0,
31: 9.0,
32: 8.0,
33: 13.0,
34: 10.0,
35: 18.0,
36: 10.0,
37: 12.0,
38: 14.0,
39: 12.0,
40: 8.0,
41: 15.0,
42: 9.0,
43: 11.0,
44: 9.0,
45: 13.0,
46: 18.0,
47: 13.0,
48: 11.0,
49: 14.0,
50: 11.0,
51: 3.0,
52: 15.0,
53: 5.0,
54: 11.0,
55: 12.0,
56: 9.0,
57: 13.0,
58: 16.0,
59: 12.0,
60: 14.0,
61: 9.0,
62: 10.0,
63: 6.0,
64: 11.0,
65: 8.0,
66: 15.0,
67: 8.0,
68: 9.0,
69: 10.0,
70: 15.0,
71: 10.0,
72: 10.0,
73: 8.0,
74: 5.0,
75: 8.0,
76: 12.0,
77: 14.0,
78: 10.0,
79: 12.0,
80: 7.0,
81: 5.0,
82: 8.0,
83: 7.0,
84: 9.0,
85: 9.0,
86: 8.0,
87: 11.0,
88: 12.0,
89: 10.0,
90: 9.0,
91: 6.0,
92: 8.0,
93: 4.0,
94: 9.0,
95: 13.0,
96: 11.0,
97: 10.0,
98: 13.0,
99: 7.0,
100: 14.0,
101: 9.0},
'16.5': {0: 17.0,
1: nan,
2: 11.0,
3: 23.0,
4: 6.0,
5: 4.0,
6: 7.0,
7: 7.0,
8: 21.0,
9: 14.0,
10: 9.0,
11: 11.0,
12: 15.0,
13: 16.0,
14: 5.0,
15: 18.0,
16: 14.0,
17: 14.0,
18: 7.0,
19: 15.0,
20: 11.0,
21: 19.0,
22: 13.0,
23: 9.0,
24: 16.0,
25: 11.0,
26: 9.0,
27: 17.0,
28: 9.0,
29: 15.0,
30: 11.0,
31: 17.0,
32: 8.0,
33: 14.0,
34: 8.0,
35: 8.0,
36: 13.0,
37: 13.0,
38: 16.0,
39: 13.0,
40: 10.0,
41: 14.0,
42: 14.0,
43: 16.0,
44: 12.0,
45: 5.0,
46: 11.0,
47: 10.0,
48: 8.0,
49: 19.0,
50: 8.0,
51: 6.0,
52: 13.0,
53: 6.0,
54: 13.0,
55: 14.0,
56: 8.0,
57: 6.0,
58: 14.0,
59: 12.0,
60: 11.0,
61: 14.0,
62: 10.0,
63: 17.0,
64: 8.0,
65: 12.0,
66: 7.0,
67: 8.0,
68: 11.0,
69: 15.0,
70: 18.0,
71: 15.0,
72: 4.0,
73: 14.0,
74: 11.0,
75: 10.0,
76: 12.0,
77: 13.0,
78: 12.0,
79: 13.0,
80: 8.0,
81: 7.0,
82: 11.0,
83: 8.0,
84: 14.0,
85: 7.0,
86: 12.0,
87: 16.0,
88: 8.0,
89: 9.0,
90: 9.0,
91: 13.0,
92: 15.0,
93: 6.0,
94: 9.0,
95: 6.0,
96: 13.0,
97: 8.0,
98: 7.0,
99: 11.0,
100: 8.0,
101: 11.0},
'17.0': {0: 17.5,
1: nan,
2: 10.0,
3: 10.0,
4: 7.0,
5: 14.0,
6: 13.0,
7: 13.0,
8: 11.0,
9: 9.0,
10: 6.0,
11: 14.0,
12: 9.0,
13: 13.0,
14: 13.0,
15: 12.0,
16: 6.0,
17: 13.0,
18: 7.0,
19: 16.0,
20: 5.0,
21: 8.0,
22: 15.0,
23: 10.0,
24: 6.0,
25: 5.0,
26: 12.0,
27: 10.0,
28: 15.0,
29: 9.0,
30: 14.0,
31: 8.0,
32: 10.0,
33: 12.0,
34: 8.0,
35: 9.0,
36: 9.0,
37: 14.0,
38: 11.0,
39: 12.0,
40: 11.0,
41: 14.0,
42: 8.0,
43: 8.0,
44: 12.0,
45: 11.0,
46: 6.0,
47: 6.0,
48: 7.0,
49: 9.0,
50: 3.0,
51: 13.0,
52: 8.0,
53: 11.0,
54: 17.0,
55: 13.0,
56: 10.0,
57: 13.0,
58: 10.0,
59: 9.0,
60: 5.0,
61: 8.0,
62: 10.0,
63: 11.0,
64: 8.0,
65: 16.0,
66: 11.0,
67: 14.0,
68: 12.0,
69: 14.0,
70: 8.0,
71: 8.0,
72: 12.0,
73: 16.0,
74: 14.0,
75: 9.0,
76: 12.0,
77: 11.0,
78: 9.0,
79: 11.0,
80: 11.0,
81: 9.0,
82: 11.0,
83: 13.0,
84: 12.0,
85: 14.0,
86: 13.0,
87: 14.0,
88: 11.0,
89: 12.0,
90: 12.0,
91: 12.0,
92: 9.0,
93: 8.0,
94: 13.0,
95: 8.0,
96: 12.0,
97: 6.0,
98: 7.0,
99: 8.0,
100: 11.0,
101: 10.0},
'17.5': {0: 18.0,
1: nan,
2: 18.0,
3: 6.0,
4: 11.0,
5: 11.0,
6: 11.0,
7: 17.0,
8: 4.0,
9: 12.0,
10: 14.0,
11: 16.0,
12: 16.0,
13: 8.0,
14: 6.0,
15: 13.0,
16: 7.0,
17: 10.0,
18: 11.0,
19: 17.0,
20: 12.0,
21: 10.0,
22: 14.0,
23: 9.0,
24: 10.0,
25: 15.0,
26: 9.0,
27: 7.0,
28: 10.0,
29: 13.0,
30: 8.0,
31: 13.0,
32: 10.0,
33: 10.0,
34: 8.0,
35: 12.0,
36: 11.0,
37: 6.0,
38: 7.0,
39: 12.0,
40: 14.0,
41: 15.0,
42: 3.0,
43: 9.0,
44: 16.0,
45: 9.0,
46: 11.0,
47: 6.0,
48: 13.0,
49: 12.0,
50: 14.0,
51: 9.0,
52: 16.0,
53: 15.0,
54: 11.0,
55: 5.0,
56: 9.0,
57: 10.0,
58: 19.0,
59: 17.0,
60: 9.0,
61: 9.0,
62: 11.0,
63: 15.0,
64: 8.0,
65: 11.0,
66: 9.0,
67: 10.0,
68: 11.0,
69: 15.0,
70: 12.0,
71: 17.0,
72: 9.0,
73: 11.0,
74: 13.0,
75: 8.0,
76: 10.0,
77: 16.0,
78: 15.0,
79: 14.0,
80: 11.0,
81: 9.0,
82: 3.0,
83: 11.0,
84: 6.0,
85: 16.0,
86: 8.0,
87: 11.0,
88: 17.0,
89: 9.0,
90: 14.0,
91: 10.0,
92: 8.0,
93: 9.0,
94: 11.0,
95: 10.0,
96: 14.0,
97: 9.0,
98: 10.0,
99: 12.0,
100: 6.0,
101: 5.0},
'18.0': {0: 18.5,
1: nan,
2: 9.0,
3: 5.0,
4: 1.0,
5: 13.0,
6: 9.0,
7: 11.0,
8: 11.0,
9: 12.0,
10: 7.0,
11: 13.0,
12: 5.0,
13: 8.0,
14: 5.0,
15: 7.0,
16: 6.0,
17: 5.0,
18: 6.0,
19: 14.0,
20: 10.0,
21: 8.0,
22: 6.0,
23: 7.0,
24: 7.0,
25: 6.0,
26: 6.0,
27: 13.0,
28: 7.0,
29: 11.0,
30: 11.0,
31: 8.0,
32: 12.0,
33: 15.0,
34: 8.0,
35: 3.0,
36: 9.0,
37: 9.0,
38: 9.0,
39: 6.0,
40: 10.0,
41: 9.0,
42: 7.0,
43: 7.0,
44: 10.0,
45: 5.0,
46: 10.0,
47: 9.0,
48: 4.0,
49: 7.0,
50: 5.0,
51: 4.0,
52: 8.0,
53: 6.0,
54: 12.0,
55: 7.0,
56: 11.0,
57: 6.0,
58: 8.0,
59: 13.0,
60: 7.0,
61: 11.0,
62: 1.0,
63: 4.0,
64: 3.0,
65: 12.0,
66: 4.0,
67: 10.0,
68: 8.0,
69: 9.0,
70: 13.0,
71: 8.0,
72: 16.0,
73: 12.0,
74: 6.0,
75: 7.0,
76: 12.0,
77: 13.0,
78: 7.0,
79: 16.0,
80: 11.0,
81: 8.0,
82: 9.0,
83: 11.0,
84: 12.0,
85: 9.0,
86: 8.0,
87: 17.0,
88: 12.0,
89: 9.0,
90: 7.0,
91: 8.0,
92: 7.0,
93: 7.0,
94: 13.0,
95: 11.0,
96: 8.0,
97: 14.0,
98: 9.0,
99: 12.0,
100: 13.0,
101: 11.0},
'18.5': {0: 19.0,
1: nan,
2: 5.0,
3: 7.0,
4: 2.0,
5: 10.0,
6: 9.0,
7: 4.0,
8: 8.0,
9: 3.0,
10: 5.0,
11: 3.0,
12: 12.0,
13: 6.0,
14: 6.0,
15: 8.0,
16: 7.0,
17: 4.0,
18: 12.0,
19: 4.0,
20: 9.0,
21: 11.0,
22: 2.0,
23: 9.0,
24: 4.0,
25: 7.0,
26: 6.0,
27: 4.0,
28: 11.0,
29: 5.0,
30: 8.0,
31: 6.0,
32: 4.0,
33: 7.0,
34: 7.0,
35: 7.0,
36: 11.0,
37: 3.0,
38: 7.0,
39: 12.0,
40: 8.0,
41: 10.0,
42: 6.0,
43: 5.0,
44: 9.0,
45: 7.0,
46: 8.0,
47: 6.0,
48: 6.0,
49: 6.0,
50: 7.0,
51: 4.0,
52: 6.0,
53: 6.0,
54: 12.0,
55: 9.0,
56: 7.0,
57: 7.0,
58: 9.0,
59: 9.0,
60: 4.0,
61: 17.0,
62: 9.0,
63: 9.0,
64: 13.0,
65: 6.0,
66: 6.0,
67: 7.0,
68: 3.0,
69: 13.0,
70: 6.0,
71: 10.0,
72: 6.0,
73: 5.0,
74: 12.0,
75: 8.0,
76: 4.0,
77: 6.0,
78: 13.0,
79: 4.0,
80: 7.0,
81: 8.0,
82: 8.0,
83: 7.0,
84: 13.0,
85: 8.0,
86: 14.0,
87: 8.0,
88: 14.0,
89: 9.0,
90: 13.0,
91: 6.0,
92: 7.0,
93: 8.0,
94: 11.0,
95: 7.0,
96: 3.0,
97: 9.0,
98: 8.0,
99: 10.0,
100: 5.0,
101: 10.0},
'19.0': {0: 19.5,
1: nan,
2: 10.0,
3: 7.0,
4: 4.0,
5: 5.0,
6: 7.0,
7: 8.0,
8: 3.0,
9: 3.0,
10: 4.0,
11: 3.0,
12: 7.0,
13: 5.0,
14: 11.0,
15: 7.0,
16: 6.0,
17: 5.0,
18: 5.0,
19: 3.0,
20: 6.0,
21: 7.0,
22: 5.0,
23: 4.0,
24: 5.0,
25: 5.0,
26: 4.0,
27: 9.0,
28: 8.0,
29: 4.0,
30: 7.0,
31: 6.0,
32: 2.0,
33: 4.0,
34: 9.0,
35: 6.0,
36: 6.0,
37: 5.0,
38: 10.0,
39: 3.0,
40: 4.0,
41: 9.0,
42: 4.0,
43: 2.0,
44: 5.0,
45: 4.0,
46: 9.0,
47: 3.0,
48: 7.0,
49: 7.0,
50: 4.0,
51: 5.0,
52: 6.0,
53: 7.0,
54: 11.0,
55: 5.0,
56: 9.0,
57: 4.0,
58: 6.0,
59: 4.0,
60: 8.0,
61: 7.0,
62: 3.0,
63: 8.0,
64: 2.0,
65: 6.0,
66: 6.0,
67: 5.0,
68: 3.0,
69: 4.0,
70: 7.0,
71: 5.0,
72: 2.0,
73: 12.0,
74: 9.0,
75: 12.0,
76: 6.0,
77: 3.0,
78: 3.0,
79: 7.0,
80: 5.0,
81: 2.0,
82: 7.0,
83: 6.0,
84: 8.0,
85: 4.0,
86: 6.0,
87: 6.0,
88: 3.0,
89: 8.0,
90: 9.0,
91: 2.0,
92: 5.0,
93: 6.0,
94: 9.0,
95: 4.0,
96: 4.0,
97: 4.0,
98: 4.0,
99: 6.0,
100: 5.0,
101: 5.0},
'19.5': {0: 20.0,
1: nan,
2: 4.0,
3: 3.0,
4: 5.0,
5: 4.0,
6: 3.0,
7: 5.0,
8: 5.0,
9: 0.0,
10: 2.0,
11: 3.0,
12: 3.0,
13: 6.0,
14: 2.0,
15: 2.0,
16: 1.0,
17: 5.0,
18: 3.0,
19: 3.0,
20: 6.0,
21: 2.0,
22: 1.0,
23: 6.0,
24: 5.0,
25: 7.0,
26: 5.0,
27: 2.0,
28: 5.0,
29: 2.0,
30: 3.0,
31: 1.0,
32: 2.0,
33: 9.0,
34: 5.0,
35: 7.0,
36: 2.0,
37: 4.0,
38: 3.0,
39: 6.0,
40: 2.0,
41: 3.0,
42: 3.0,
43: 5.0,
44: 4.0,
45: 6.0,
46: 7.0,
47: 2.0,
48: 4.0,
49: 3.0,
50: 4.0,
51: 3.0,
52: 5.0,
53: 3.0,
54: 3.0,
55: 4.0,
56: 7.0,
57: 0.0,
58: 4.0,
59: 3.0,
60: 5.0,
61: 1.0,
62: 3.0,
63: 3.0,
64: 5.0,
65: 6.0,
66: 6.0,
67: 10.0,
68: 8.0,
69: 5.0,
70: 3.0,
71: 7.0,
72: 3.0,
73: 4.0,
74: 4.0,
75: 3.0,
76: 5.0,
77: 2.0,
78: 1.0,
79: 5.0,
80: 1.0,
81: 1.0,
82: 3.0,
83: 6.0,
84: 6.0,
85: 5.0,
86: 3.0,
87: 5.0,
88: 2.0,
89: 3.0,
90: 3.0,
91: 5.0,
92: 5.0,
93: 5.0,
94: 3.0,
95: 4.0,
96: 11.0,
97: 3.0,
98: 1.0,
99: 4.0,
100: 7.0,
101: 8.0},
'8.0': {0: 8.5,
1: nan,
2: 6.0,
3: 6.0,
4: 7.0,
5: 4.0,
6: 4.0,
7: 13.0,
8: 14.0,
9: 2.0,
10: 5.0,
11: 11.0,
12: 9.0,
13: 9.0,
14: 8.0,
15: 9.0,
16: 8.0,
17: 13.0,
18: 9.0,
19: 12.0,
20: 5.0,
21: 7.0,
22: 8.0,
23: 9.0,
24: 7.0,
25: 8.0,
26: 7.0,
27: 6.0,
28: 10.0,
29: 9.0,
30: 6.0,
31: 8.0,
32: 9.0,
33: 9.0,
34: 10.0,
35: 8.0,
36: 6.0,
37: 5.0,
38: 10.0,
39: 6.0,
40: 10.0,
41: 11.0,
42: 10.0,
43: 10.0,
44: 6.0,
45: 6.0,
46: 7.0,
47: 7.0,
48: 7.0,
49: 7.0,
50: 6.0,
51: 14.0,
52: 8.0,
53: 9.0,
54: 11.0,
55: 5.0,
56: 5.0,
57: 8.0,
58: 9.0,
59: 6.0,
60: 6.0,
61: 7.0,
62: 5.0,
63: 4.0,
64: 14.0,
65: 2.0,
66: 7.0,
67: 2.0,
68: 4.0,
69: 9.0,
70: 11.0,
71: 8.0,
72: 7.0,
73: 9.0,
74: 12.0,
75: 7.0,
76: 9.0,
77: 8.0,
78: 4.0,
79: 9.0,
80: 11.0,
81: 9.0,
82: 12.0,
83: 9.0,
84: 5.0,
85: 9.0,
86: 11.0,
87: 10.0,
88: 10.0,
89: 13.0,
90: 13.0,
91: 8.0,
92: 14.0,
93: 10.0,
94: 8.0,
95: 9.0,
96: 8.0,
97: 5.0,
98: 4.0,
99: 11.0,
100: 10.0,
101: 7.0},
'8.5': {0: 9.0,
1: nan,
2: 14.0,
3: 14.0,
4: 14.0,
5: 7.0,
6: 13.0,
7: 10.0,
8: 10.0,
9: 23.0,
10: 4.0,
11: 16.0,
12: 18.0,
13: 6.0,
14: 12.0,
15: 9.0,
16: 10.0,
17: 7.0,
18: 11.0,
19: 15.0,
20: 12.0,
21: 12.0,
22: 12.0,
23: 10.0,
24: 11.0,
25: 12.0,
26: 5.0,
27: 8.0,
28: 9.0,
29: 16.0,
30: 13.0,
31: 12.0,
32: 11.0,
33: 13.0,
34: 10.0,
35: 18.0,
36: 13.0,
37: 13.0,
38: 13.0,
39: 9.0,
40: 17.0,
41: 10.0,
42: 9.0,
43: 12.0,
44: 6.0,
45: 11.0,
46: 7.0,
47: 10.0,
48: 17.0,
49: 17.0,
50: 7.0,
51: 6.0,
52: 5.0,
53: 16.0,
54: 12.0,
55: 15.0,
56: 4.0,
57: 8.0,
58: 9.0,
59: 10.0,
60: 22.0,
61: 11.0,
62: 8.0,
63: 7.0,
64: 6.0,
65: 9.0,
66: 14.0,
67: 17.0,
68: 5.0,
69: 9.0,
70: 12.0,
71: 12.0,
72: 12.0,
73: 6.0,
74: 19.0,
75: 8.0,
76: 15.0,
77: 9.0,
78: 10.0,
79: 12.0,
80: 6.0,
81: 11.0,
82: 13.0,
83: 11.0,
84: 9.0,
85: 14.0,
86: 12.0,
87: 11.0,
88: 13.0,
89: 15.0,
90: 5.0,
91: 10.0,
92: 13.0,
93: 11.0,
94: 9.0,
95: 7.0,
96: 11.0,
97: 13.0,
98: 11.0,
99: 10.0,
100: 12.0,
101: 11.0},
'9.0': {0: 9.5,
1: nan,
2: 13.0,
3: 16.0,
4: 7.0,
5: 15.0,
6: 13.0,
7: 22.0,
8: 16.0,
9: 12.0,
10: 17.0,
11: 7.0,
12: 10.0,
13: 12.0,
14: 11.0,
15: 15.0,
16: 10.0,
17: 12.0,
18: 17.0,
19: 10.0,
20: 19.0,
21: 12.0,
22: 19.0,
23: 9.0,
24: 21.0,
25: 12.0,
26: 11.0,
27: 13.0,
28: 15.0,
29: 19.0,
30: 10.0,
31: 19.0,
32: 21.0,
33: 15.0,
34: 16.0,
35: 9.0,
36: 18.0,
37: 16.0,
38: 12.0,
39: 13.0,
40: 16.0,
41: 15.0,
42: 16.0,
43: 9.0,
44: 11.0,
45: 17.0,
46: 7.0,
47: 15.0,
48: 24.0,
49: 16.0,
50: 13.0,
51: 21.0,
52: 18.0,
53: 14.0,
54: 11.0,
55: 11.0,
56: 4.0,
57: 13.0,
58: 14.0,
59: 19.0,
60: 11.0,
61: 7.0,
62: 8.0,
63: 19.0,
64: 15.0,
65: 11.0,
66: 20.0,
67: 13.0,
68: 14.0,
69: 12.0,
70: 12.0,
71: 18.0,
72: 12.0,
73: 15.0,
74: 14.0,
75: 15.0,
76: 14.0,
77: 19.0,
78: 9.0,
79: 17.0,
80: 13.0,
81: 9.0,
82: 19.0,
83: 10.0,
84: 9.0,
85: 12.0,
86: 12.0,
87: 21.0,
88: 11.0,
89: 12.0,
90: 9.0,
91: 11.0,
92: 16.0,
93: 15.0,
94: 20.0,
95: 11.0,
96: 12.0,
97: 11.0,
98: 13.0,
99: 11.0,
100: 17.0,
101: 13.0},
'9.5': {0: 10.0,
1: nan,
2: 14.0,
3: 23.0,
4: 7.0,
5: 10.0,
6: 14.0,
7: 15.0,
8: 16.0,
9: 20.0,
10: 15.0,
11: 19.0,
12: 14.0,
13: 10.0,
14: 9.0,
15: 11.0,
16: 13.0,
17: 14.0,
18: 17.0,
19: 8.0,
20: 13.0,
21: 9.0,
22: 14.0,
23: 18.0,
24: 12.0,
25: 12.0,
26: 10.0,
27: 12.0,
28: 16.0,
29: 16.0,
30: 12.0,
31: 14.0,
32: 14.0,
33: 12.0,
34: 19.0,
35: 11.0,
36: 15.0,
37: 14.0,
38: 5.0,
39: 15.0,
40: 10.0,
41: 14.0,
42: 7.0,
43: 17.0,
44: 12.0,
45: 12.0,
46: 16.0,
47: 18.0,
48: 10.0,
49: 11.0,
50: 20.0,
51: 12.0,
52: 15.0,
53: 15.0,
54: 14.0,
55: 11.0,
56: 16.0,
57: 16.0,
58: 15.0,
59: 19.0,
60: 16.0,
61: 10.0,
62: 12.0,
63: 11.0,
64: 19.0,
65: 24.0,
66: 16.0,
67: 20.0,
68: 9.0,
69: 14.0,
70: 13.0,
71: 14.0,
72: 21.0,
73: 24.0,
74: 12.0,
75: 22.0,
76: 12.0,
77: 19.0,
78: 9.0,
79: 15.0,
80: 20.0,
81: 9.0,
82: 16.0,
83: 18.0,
84: 19.0,
85: 19.0,
86: 18.0,
87: 14.0,
88: 17.0,
89: 12.0,
90: 13.0,
91: 8.0,
92: 15.0,
93: 14.0,
94: 13.0,
95: 21.0,
96: 17.0,
97: 17.0,
98: 8.0,
99: 12.0,
100: 14.0,
101: 20.0},
'Unnamed: 0': {0: nan,
1: nan,
2: 0.0,
3: 1.0,
4: 2.0,
5: 3.0,
6: 4.0,
7: 5.0,
8: 6.0,
9: 7.0,
10: 8.0,
11: 9.0,
12: 10.0,
13: 11.0,
14: 12.0,
15: 13.0,
16: 14.0,
17: 15.0,
18: 16.0,
19: 17.0,
20: 18.0,
21: 19.0,
22: 20.0,
23: 21.0,
24: 22.0,
25: 23.0,
26: 24.0,
27: 25.0,
28: 26.0,
29: 27.0,
30: 28.0,
31: 29.0,
32: 30.0,
33: 31.0,
34: 32.0,
35: 33.0,
36: 34.0,
37: 35.0,
38: 36.0,
39: 37.0,
40: 38.0,
41: 39.0,
42: 40.0,
43: 41.0,
44: 42.0,
45: 43.0,
46: 44.0,
47: 45.0,
48: 46.0,
49: 47.0,
50: 48.0,
51: 49.0,
52: 50.0,
53: 51.0,
54: 52.0,
55: 53.0,
56: 54.0,
57: 55.0,
58: 56.0,
59: 57.0,
60: 58.0,
61: 59.0,
62: 60.0,
63: 61.0,
64: 62.0,
65: 63.0,
66: 64.0,
67: 65.0,
68: 66.0,
69: 67.0,
70: 68.0,
71: 69.0,
72: 70.0,
73: 71.0,
74: 72.0,
75: 73.0,
76: 74.0,
77: 75.0,
78: 76.0,
79: 77.0,
80: 78.0,
81: 79.0,
82: 80.0,
83: 81.0,
84: 82.0,
85: 83.0,
86: 84.0,
87: 85.0,
88: 86.0,
89: 87.0,
90: 88.0,
91: 89.0,
92: 90.0,
93: 91.0,
94: 92.0,
95: 93.0,
96: 94.0,
97: 95.0,
98: 96.0,
99: 97.0,
100: 98.0,
101: 99.0}}
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [31]:
dayoftheweek = ["Monday","Tuesday","Wednesday", "Thursday","Friday"]
In [139]:
def get_weekday_data(day):
""" Read the call center file and returns an dictionary"""
if day not in dayoftheweek:
raise ValueError("%d is not a day or the week or has the wrong format. Week day: ",+ ", ".join(dayoftheweek))
data = [l[2:].split() for l in open("data/CallCenter/%ss.csv"%day).read().splitlines() if len(l.split())>4 and l[0] !="#"]
return np.asarray(data[2:], dtype="float")
In [140]:
monday = get_weekday_data("Monday").T
In [141]:
import matplotlib.pyplot as mpl
In [144]:
mpl.hist(monday[0], histtype="step")
Out[144]:
(array([ 3., 17., 13., 24., 10., 22., 9., 1., 0., 1.]),
array([ 2. , 3.6, 5.2, 6.8, 8.4, 10. , 11.6, 13.2, 14.8,
16.4, 18. ]),
<a list of 1 Patch objects>)
In [146]:
ERROR: TypeError: _parse_args() takes at least 2 arguments (1 given) [scipy.stats._distn_infrastructure]
ERROR:astropy:TypeError: _parse_args() takes at least 2 arguments (1 given)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-146-7f6ea98c3714> in <module>()
----> 1 p = stats.poisson()
//anaconda/lib/python2.7/site-packages/scipy/stats/_distn_infrastructure.pyc in __call__(self, *args, **kwds)
767
768 def __call__(self, *args, **kwds):
--> 769 return self.freeze(*args, **kwds)
770 __call__.__doc__ = freeze.__doc__
771
//anaconda/lib/python2.7/site-packages/scipy/stats/_distn_infrastructure.pyc in freeze(self, *args, **kwds)
764
765 """
--> 766 return rv_frozen(self, *args, **kwds)
767
768 def __call__(self, *args, **kwds):
//anaconda/lib/python2.7/site-packages/scipy/stats/_distn_infrastructure.pyc in __init__(self, dist, *args, **kwds)
432
433 # a, b may be set in _argcheck, depending on *args, **kwds. Ouch.
--> 434 shapes, _, _ = self.dist._parse_args(*args, **kwds)
435 self.dist._argcheck(*shapes)
436 self.a, self.b = self.dist.a, self.dist.b
TypeError: _parse_args() takes at least 2 arguments (1 given)
In [ ]:
In [147]:
from scipy import stats
In [148]:
p = stats.poisson(4)
In [153]:
x = np.linspace(0,10,11)
print x
[ 0. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10.]
In [154]:
mpl.plot(x, p.cdf(x))
Out[154]:
[<matplotlib.lines.Line2D at 0x10ffe33d0>]
In [ ]:
Content source: HUDataScience/StatisticalMethods2016
Similar notebooks: