Skip to content

Commit 64bdf53

Browse files
committed
Added instructions
1 parent 167d5f6 commit 64bdf53

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ev_counts.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,18 @@
2929
print(f'{year}: {counts[year]:>5}')
3030
print(f'Yhteensä: {len(rows)}')
3131

32+
# Virtuaaliympäristöt, kts. https://realpython.com/python-virtual-environments-a-primer/
3233
# Tee ennen tätä virtuaaliympäristö samaan hakemistoon
3334
# missä projekti on: `python3 -m venv venv`.
3435
# Aktivoi virtuaaliympäristö: `source venv/bin/activate`
3536
# Asenna sitten Matplotlib: `pip install matplotlib`.
37+
# pip-ohjelman käyttö: kts. https://realpython.com/what-is-pip/
3638
# Kun olet lopettanut projektin työstämisen,
3739
# anna komento `deactivate`.
38-
40+
41+
# Kaavioiden tekeminen Matplotlib-kirjastolla,
42+
# kts. https://realpython.com/python-matplotlib-guide/
43+
3944
import matplotlib.pyplot as plt
4045

4146
values = [counts[k] for k in sorted(list(counts.keys()))]

0 commit comments

Comments
 (0)