Skip to content

Commit 1a3e23a

Browse files
author
Tanya Branagan
committed
Add all Python code to repo for backup
0 parents  commit 1a3e23a

File tree

174 files changed

+142270
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+142270
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/venv

customers

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 15145ebc3301f270eaf5497c1ffe553334c506fa

generators/techcrunch-generator.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import statistics
2+
3+
file_name = 'techcrunch.csv'
4+
5+
lines = (line for line in open(file_name))
6+
list_line = (s.rstrip().split(',') for s in lines)
7+
8+
cols = next(list_line)
9+
company_dicts = (dict(zip(cols, data)) for data in list_line)
10+
11+
funding = (
12+
int(company_dict['raisedAmt'])
13+
for company_dict in company_dicts
14+
if company_dict['round'] == 'a'
15+
)
16+
17+
average = statistics.mean(funding)
18+
print(f"Average series A fundraising: ${average}")
19+
20+
# total_series_a = sum(funding)
21+
# print(f"Total series A fundraising: ${total_series_a}")
22+
23+

generators/techcrunch.csv

Lines changed: 1461 additions & 0 deletions
Large diffs are not rendered by default.

graphs/.history/.ipynb_checkpoints/test_20200922151213.py

Whitespace-only changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# tanya, noël
2+
chess_scores = [
3+
(65.6, 96.8),
4+
(18.3, 99.1),
5+
(92.2, 99.2),
6+
(24.5, 96.2),
7+
(66.8, 97.6),
8+
(14.1, 96.2),
9+
(18.6, 99),
10+
(15.5, 98.4),
11+
(15.6, 99.1),
12+
(45.8, 98.8),
13+
(89.7, 73.6),
14+
(6.6, 39.6),
15+
(50.4, 80.2),
16+
(43.4, 81.9),
17+
(11.1, 51.4),
18+
(76.4, 97.2),
19+
(15.7, 96.1),
20+
(2.2, 59.4),
21+
(8.3, 79.5),
22+
(15.7, 45.6)
23+
]
24+
25+
tanya_scores, noel_scores = [x[0], x[1] for x in chess scores]
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# tanya, noël
2+
chess_scores = [
3+
(65.6, 96.8),
4+
(18.3, 99.1),
5+
(92.2, 99.2),
6+
(24.5, 96.2),
7+
(66.8, 97.6),
8+
(14.1, 96.2),
9+
(18.6, 99),
10+
(15.5, 98.4),
11+
(15.6, 99.1),
12+
(45.8, 98.8),
13+
(89.7, 73.6),
14+
(6.6, 39.6),
15+
(50.4, 80.2),
16+
(43.4, 81.9),
17+
(11.1, 51.4),
18+
(76.4, 97.2),
19+
(15.7, 96.1),
20+
(2.2, 59.4),
21+
(8.3, 79.5),
22+
(15.7, 45.6)
23+
]
24+
25+
tanya_scores, noel_scores = [x[0], x[1] for x in chess scores]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# tanya, noël
2+
chess_scores = [
3+
(65.6, 96.8),
4+
(18.3, 99.1),
5+
(92.2, 99.2),
6+
(24.5, 96.2),
7+
(66.8, 97.6),
8+
(14.1, 96.2),
9+
(18.6, 99),
10+
(15.5, 98.4),
11+
(15.6, 99.1),
12+
(45.8, 98.8),
13+
(89.7, 73.6),
14+
(6.6, 39.6),
15+
(50.4, 80.2),
16+
(43.4, 81.9),
17+
(11.1, 51.4),
18+
(76.4, 97.2),
19+
(15.7, 96.1),
20+
(2.2, 59.4),
21+
(8.3, 79.5),
22+
(15.7, 45.6)
23+
]
24+
25+
tanya_scores, noel_scores = chess_scores
26+
print(tanya_scores, noel_scores)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# tanya, noël
2+
chess_scores = [
3+
(65.6, 96.8),
4+
(18.3, 99.1),
5+
(92.2, 99.2),
6+
(24.5, 96.2),
7+
(66.8, 97.6),
8+
(14.1, 96.2),
9+
(18.6, 99),
10+
(15.5, 98.4),
11+
(15.6, 99.1),
12+
(45.8, 98.8),
13+
(89.7, 73.6),
14+
(6.6, 39.6),
15+
(50.4, 80.2),
16+
(43.4, 81.9),
17+
(11.1, 51.4),
18+
(76.4, 97.2),
19+
(15.7, 96.1),
20+
(2.2, 59.4),
21+
(8.3, 79.5),
22+
(15.7, 45.6)
23+
]
24+
25+
# tanya_scores, noel_scores = [x[0], x[1] for x in chess_scores]
26+
# print(tanya_scores, noel_scores)
27+
print([x[0], x[1] for x in chess_scores])
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# tanya, noël
2+
chess_scores = [
3+
(65.6, 96.8),
4+
(18.3, 99.1),
5+
(92.2, 99.2),
6+
(24.5, 96.2),
7+
(66.8, 97.6),
8+
(14.1, 96.2),
9+
(18.6, 99),
10+
(15.5, 98.4),
11+
(15.6, 99.1),
12+
(45.8, 98.8),
13+
(89.7, 73.6),
14+
(6.6, 39.6),
15+
(50.4, 80.2),
16+
(43.4, 81.9),
17+
(11.1, 51.4),
18+
(76.4, 97.2),
19+
(15.7, 96.1),
20+
(2.2, 59.4),
21+
(8.3, 79.5),
22+
(15.7, 45.6)
23+
]
24+
25+
# tanya_scores, noel_scores = [x[0], x[1] for x in chess_scores]
26+
# print(tanya_scores, noel_scores)
27+
print([x[0] for x in chess_scores])

0 commit comments

Comments
 (0)