Fake University Database. Python Version 2.7
Instruction to run our program: Please have the loader.py, query.py within the Grades folder which contains all the *.CSV files.
Our program connect to the default database named "postgres". Please start_postgres before running loader.py or query.py. Then run loader.py first, and then query.py.
Disclaimer: The loader.py will open and load the data from all the CSV files in the current directory to the database "postgres". The loader.py also check for any duplicated data, and insert "N/A" to any unknown values. The loader.py parses each course from each CSV file by looking for each line. Such as if a line contains CID or SEAT or INSTRUCTOR(S), we then just go to next line and parse the data. Once we get all the information for one course, we INSERT to the Table.
The query.py will connect to the same database that we connected with loader.py. Query.py will query the database and calculate data to get the result for each part of problem 3.