/
acquire_aqi.py
76 lines (40 loc) · 1.01 KB
/
acquire_aqi.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env python
"""
This script contains code used by the following jupytr notebooks:
1. master-aqi.ipynb
2. dd-aqi.ipynb
3.
"""
# ===========
# ENVIRONMENT
# ===========
import os
import sys
import pandas as pd
from env import path
# ===========
# ACQUISITION
# ===========
def read_data(filename):
"""
Reads in the dataset: Air Quality
from the City of San Antonio (COSA)
"""
return pd.read_csv(path + filename, low_memory=False)
# ==================================================
# MAIN
# ==================================================
def clear():
os.system("cls" if os.name == "nt" else "clear")
def main():
"""Main entry point for the script."""
pass
if __name__ == '__main__':
sys.exit(main())
__authors__ = ["Joseph Burton", "Ednalyn C. De Dios", "Sandy Graham"]
__copyright__ = "Copyright 2019, Codeup Data Science"
__license__ = "MIT"
__version__ = "1.0.0"
__maintainers__ = "Ednalyn C. De Dios"
__email__ = "ednalyn.dedios@gmail.com"
__status__ = "Prototype"