-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
56 lines (52 loc) · 1.67 KB
/
constants.py
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
"""
Stores constants (strings and dictionaries) for use in helper functions.
"""
# URL = DEFAULT_URL + `City Name` + '.tab'
DEFAULT_URL = \
'https://commons.wikimedia.org/wiki/Data:Ncei.noaa.gov/weather/'
# 'Stylized City Name': ['simplified_city_name', # of rows to drop]
CITIES = {
'Boston': ['boston', 226],
'New York City': ['new_york_city', 12],
'Chicago': ['chicago', 150],
'Denver': ['denver', 120],
'Bismarck, North Dakota': ['bismarck', 135],
'Detroit': ['detroit', 132],
# 'Atlanta': ['atlanta', ],
'Anchorage, Alaska': ['anchorage', 2],
# 'London': ['london', 1],
'Minneapolis': ['minneapolis', 147],
'Temperature Experiment': ['test', 12],
'clean data test 1': ['clean 1', 1],
'clean data test 2': ['clean 2', 4],
'clean data test 3': ['clean 3', 1],
'clean data test 4': ['clean 4', 2]
}
# 'columnHeader': ['For Graph Title', 'For Graph Axis Labels']
LABEL_DICT = {
'date': ['Time', 'Date'],
'highTemp': ['Highest Temp', 'Highest Temp (C)'],
'avgHighTemp': ['Average High Temp', 'Average High Temp (C)'],
'avgLowTemp': ['Average Low Temp', 'Average Low Temp (C)'],
'lowTemp': ['Lowest Temp', 'Lowest Temp (C)'],
'precip': ['Precipitation', 'Precipitation (mm)'],
'precipDays': ['Precipitation Days', 'Precipitation Days'],
'snowfall': ['Snowfall Amount', 'Snowfall (mm)'],
'snowfallDays': ['Snowfall Days', 'Snowfall Days']
}
# Month #: 'Month Name'
MONTH_DICT = {
0: 'All Months',
1: 'January',
2: 'February',
3: 'March',
4: 'April',
5: 'May',
6: 'June',
7: 'July',
8: 'August',
9: 'September',
10: 'October',
11: 'November',
12: 'December'
}