Skip to content

Commit c458994

Browse files
committed
Pieniä säätöjä Python-skripteihin
1 parent f9174a6 commit c458994

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

ev_counts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
rows.append(row)
1111
csv_file.close()
1212

13-
years = range(2016, 2023)
13+
years = range(2016, 2024)
1414

1515
counts = {} # make empty dictionary for yearly counts
1616

ev_counts_monthly.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
all_rows = []
66

7-
csv_file = open(filename, encoding='iso-8859-1')
7+
csv_file = open(filename)
88
reader = csv.reader(csv_file)
99
headers = next(reader)
1010
for row in reader:
@@ -14,7 +14,7 @@
1414

1515
print(len(all_rows))
1616

17-
years = range(2016, 2023)
17+
years = range(2016, 2024)
1818
counts = {}
1919
for row in all_rows:
2020
if row[1] == '': # ohita tyhjä rek. pvm

ev_counts_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
all_rows = []
66

7-
csv_file = open(filename, encoding='iso-8859-1')
7+
csv_file = open(filename)
88
reader = csv.reader(csv_file)
99
headers = next(reader)
1010
for row in reader:

0 commit comments

Comments
 (0)