Internal Code: IAH116
Software Technologies Assignment Help:
This assignment will test your ability to use python to interact with databases, excel workbooks, perform data analysis using NumPy, and use matplotlib to generate graphs. Raw data will be provided and will need to be stored in a database. You will then need to write scripts to query the database and pull out subsets of the data. These subsets will then need to be further analysed and have graphs procedurally generated to display relevant information. All of the investigations should yield results that you can present in a professional report.
It is important to note that submission of this assignment is a requirement for passing the course. Late submissions will be marked according to Griffith University’s assessment policy. 10% of the overall mark will be deducted for each business day late. After 5 days, no submissions will be accepted.
As more and more industries are becoming data driven, being able to process a large volume of raw data and produce a concise and insightful summary is becoming more and more important. As a data consultant for a political candidate, you are tasked with processing some global temperature data and producing a report summarising some of the information.
The raw data is provided in 3 excel spreadsheets: (A) temperature by state, (B) temperature by country, (c) temperature by major city. You will need to complete the below tasks and present your results in a report.
For each python script, you should handle the case where the script has already been run and therefore the data already exists. This could mean checking to see if the table already existed in the database, or a specific workbook/worksheet already exists. In each case, you should decide what to do (display error ? Create a book/sheet with a different name ? Delete the existing version and run the script ?).
You should write a readme.txt file to accompany your scripts. Prepare a brief usage guide, any requirements and assumptions, and document what each script does and any other important info (for example; how does each script deal with database tables/excel sheets already existing).
Task 1 – Access the workbooks and create a database
Create a Python script (db_create.py) to perform the following tasks:
1. Open the excel files.
2. Create a SQLite database with three tables, one for each excel file. Each column in the excel files should correspond to a column in the tables. Make sensible decisions for attribute types.
3. Import the data from the excel files to the corresponding tables in the database.
Task 2 – Query the database
Create a Python script (sql_temp.py) to perform the following tasks:
1. List the distinctive major cities located in southern hemisphere ordered by country to the console and then write their name, country, and geolocation into a new database table called “Southern cities”.
2. Find the maximum, minimum and average temperature of Queensland for year 2000 and print this information to the console.
Task 3 – Excel via Python
Create a Python script (excel_temp.py) to perform the following tasks:
1. Create a new workbook named “World Temperature.xlsx”.
2. Create a sheet named “Temperature by city”.
3. Query the database and calculate the yearly mean temperature of each city in China. Note some data may be missing.
4. Write the relevant data into the worksheet you created.
5. Generate a line chart for the above data.
Task 4 – Numpy in Python
Create a Python script (numpy_temp.py) to perform the following tasks:
1. Open the World Temperature workbook.
2. Create another sheet called “Comparison”.
3. Calculate the mean temperature of Australian states for each year (using the temperature by state table in your database).
4. Calculate the mean temperature of Australia for each year (using the temperature by country table in your database).
5. Calculate their differences between each state and the national data for each year.
6. Use MatPlotLib to plot the difference across years.
7. Write the data into the sheet.
Task 5 – Report
After developing all of your scripts, you need to take the information and present it in a brief executive-style scientific report. You may use the provided template as is, modify it, or come up with your own. Do not simply paste data from the console/excel into each section in the template –present the data in a professional manner.