-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathassignment_b.html
More file actions
124 lines (120 loc) · 8.94 KB
/
assignment_b.html
File metadata and controls
124 lines (120 loc) · 8.94 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module assignment_b</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>assignment_b</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:c%3A%5Cusers%5Cfflattery%5Conedrive%20-%20athlone%20institute%20of%20technology%5Capplied%20scripting%20languages%5Cassignment%5Cassignment_b.py">c:\users\fflattery\onedrive - athlone institute of technology\applied scripting languages\assignment\assignment_b.py</a></font></td></tr></table>
<p><tt>Student ID: A00291231<br>
Purpose: Perform analysis on a category that has had its values added to a dictionary</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="matplotlib.pyplot.html">matplotlib.pyplot</a><br>
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
<td width="100%"><dl><dt><a name="-boxplot2"><strong>boxplot2</strong></a>(team_dict2)</dt><dd><tt>boxplot of each team and their salary<br>
<br>
Parameters<br>
----------<br>
team_dict2 : dictionary{list}<br>
dictionary of NBA teams along with a list of NBA salarys associated with them.<br>
<br>
Returns<br>
-------<br>
None.</tt></dd></dl>
<dl><dt><a name="-highest_number_of_values"><strong>highest_number_of_values</strong></a>(team_dict2)</dt><dd><tt>Return the dictionary key(team) that has the most salarys associated with it<br>
<br>
Parameters<br>
----------<br>
team_dict2 : dictionatry{list}<br>
dictionary of NBA teams along with a list of NBA salarys associated with them.<br>
<br>
Returns<br>
-------<br>
highest_no : string<br>
the team that has the most salarys associated with it.</tt></dd></dl>
<dl><dt><a name="-highest_total"><strong>highest_total</strong></a>(team_dict)</dt><dd><tt>Get the team that has the highest spend on salaries<br>
<br>
Parameters<br>
----------<br>
team_dict : dictionary{int}<br>
dictionary of NBA teamas along with the salary.<br>
<br>
Returns<br>
-------<br>
highest_tot : string<br>
the nba team with the highest total salary associated with it.</tt></dd></dl>
<dl><dt><a name="-lowest_number_of_values"><strong>lowest_number_of_values</strong></a>(team_dict2)</dt><dd><tt>The team with the lowest number of salarys associated with it<br>
<br>
Parameters<br>
----------<br>
team_dict2 : dictionary{list}<br>
dictionary of NBA teams along with a list of NBA salarys associated with them..<br>
<br>
Returns<br>
-------<br>
lowest_no : string<br>
the team with the least amount of salarys associated with it</tt></dd></dl>
<dl><dt><a name="-lowest_total"><strong>lowest_total</strong></a>(team_dict)</dt><dd><tt>Get the team that has the lowest spend on salaries<br>
<br>
Parameters<br>
----------<br>
team_dict : dictionary{int}<br>
dictionary of NBA teamas along with the salary.<br>
<br>
Returns<br>
-------<br>
lowest_tot : string<br>
the nba team with the lowest total salary associated with it.</tt></dd></dl>
<dl><dt><a name="-number_of_categories"><strong>number_of_categories</strong></a>(team_dict)</dt><dd><tt>Get the number of distinct categories from the dictionary<br>
<br>
Parameters<br>
----------<br>
team_dict : dictionary{int}<br>
dictionary of NBA teamas along with the salary.<br>
<br>
Returns<br>
-------<br>
number : int<br>
the amount of distinct NBA teamas in the dictionary.</tt></dd></dl>
<dl><dt><a name="-piechart"><strong>piechart</strong></a>(team_dict)</dt><dd><tt>create a pie chart of the percentage number of values in each category<br>
<br>
Parameters<br>
----------<br>
team_dict : dictionary{int}<br>
dictionary of NBA teamas along with the salary.<br>
<br>
Returns<br>
-------<br>
None.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom> <br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
<td width="100%"><strong>bDay</strong> = '12/30/1984'<br>
<strong>country</strong> = 'USA<font color="#c040c0">\n</font>'<br>
<strong>data_file</strong> = <_io.TextIOWrapper name='nba2k20_players.csv' mode='r' encoding='cp1252'><br>
<strong>fullName</strong> = 'LeBron James'<br>
<strong>height</strong> = '206'<br>
<strong>jersey</strong> = '23'<br>
<strong>line</strong> = 'LeBron James,97,23,Los Angeles Lakers,12/30/1984,206,250,37436858,USA<font color="#c040c0">\n</font>'<br>
<strong>rating</strong> = '97'<br>
<strong>salary</strong> = '37436858'<br>
<strong>team</strong> = 'Los Angeles Lakers'<br>
<strong>team_dict</strong> = {'Atlanta Hawks': 76405008, 'Boston Celtics': 116701886, 'Brooklyn Nets': 136848791, 'Charlotte Hornets': 93259611, 'Chicago Bulls': 112442765, 'Cleveland Cavaliers': 118818083, 'Dallas Mavericks': 132671963, 'Denver Nuggets': 129184213, 'Detroit Pistons': 103702143, 'Golden State Warriors': 129126051, ...}<br>
<strong>team_dict2</strong> = {'Atlanta Hawks': [19000000, 13333334, 2603981, 522738, 7068360, 2338846, 16896552, 1400000, 2636280, 6273000, 2686560, 1645357], 'Boston Celtics': [32742000, 5000000, 1618520, 12553571, 7830000, 1228026, 32700690, 4767000, 1445697, 2505793, 1937520, 6534829, 3458400, 2379840], 'Brooklyn Nets': [4767000, 2564753, 7666667, 19428485, 10605600, 1699236, 1911600, 3481985, 31742000, 898310, 2376840, 9881598, 2625717, 37199000], 'Charlotte Hornets': [14471910, 4028400, 1416852, 19894737, 3755400, 1676735, 3831840, 17000000, 1618520, 25565217], 'Chicago Bulls': [8156500, 27250576, 1620564, 19500000, 898310, 5307120, 5348007, 3000000, 5201400, 2332320, 5300400, 12900000, 2250000, 10000000, 3377568], 'Cleveland Cavaliers': [28942830, 9607500, 12727273, 27093018, 1870564, 2907143, 2281800, 4764960, 1290960, 18539130, 6400920, 2391985], 'Dallas Mavericks': [12759670, 4000000, 27285000, 8000000, 7683360, 20025127, 3280920, 9473684, 2564753, 10259375, 3500000, 2177483, 7461380, 1416852, 12784359], 'Denver Nuggets': [30350000, 14041096, 12776786, 9346153, 1416852, 27504630, 4444746, 1588231, 3389400, 2487033, 2000000, 17839286, 2000000], 'Detroit Pistons': [7317074, 15643750, 7333333, 11392857, 1416852, 1416852, 3569643, 34449964, 1254933, 3827160, 1416852, 1645357, 3285120, 9732396], 'Golden State Warriors': [18539130, 32742000, 1882867, 898310, 4464286, 27504630, 40231758, 1964760, 898310], ...}<br>
<strong>weight</strong> = '250'</td></tr></table>
</body></html>