-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAufgabe12.py
More file actions
33 lines (33 loc) · 819 Bytes
/
Copy pathAufgabe12.py
File metadata and controls
33 lines (33 loc) · 819 Bytes
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
import csv
import matplotlib.pyplot as plt
with open('12_Wetter_Daten_1949_2014.txt', 'r') as weatherdata:
csv_reader = csv.reader(weatherdata)
Titelzeile = next(csv_reader)
#for index, Spaltentitel in enumerate(Titelzeile):
#print(index, Spaltentitel)
values = []
pos = input('Enter Column Number to Visualize:')
i = 0
for row in csv_reader:
print(row[0][0:4])
i = i+1
print(i)
# try:
# values.append(float(row[pos]))
# except:
# continue
#for column in csv_reader:
# print(column[0])
#print(values)
#
# x=list(range(0,len(values)))
#
# plt.style.use("seaborn")
# plt.plot(x,values,"-",label=title_line[pos])
#
# plt.xlabel("x")
# plt.ylabel("y")
#
# plt.legend()
#
# plt.show()