Difference between revisions of "OPS435 Python Assignment 2 B"
(→Overview) |
|||
Line 6: | Line 6: | ||
# [https://openpyxl.readthedocs.io/en/stable/ openpyxl] - A Python library to read/write Excel 2010 xlsx/xlsm files | # [https://openpyxl.readthedocs.io/en/stable/ openpyxl] - A Python library to read/write Excel 2010 xlsx/xlsm files | ||
# [https://plot.ly/matplotlib/bar-charts/ matplotlib] - a Python 2D plotting library | # [https://plot.ly/matplotlib/bar-charts/ matplotlib] - a Python 2D plotting library | ||
+ | |||
+ | You also need to update your usage_report for assignment 1 to support command line options to select the type of report to generate. | ||
+ | = Instructions = | ||
+ | The task for this assignment is write a python script which takes the usage data (daily report by user) generate by your usage_report program and present the data in Bar-Chart form. You can use either one of the above python packages to complete the task. | ||
+ | |||
+ | Use the user on the x-axis and usage on the y-axis. It there are more than 10 users, just display a bar chart for the first 10 users. | ||
+ | |||
+ | = Sample run and results = | ||
+ | * Coming soon... |
Revision as of 13:09, 29 March 2018
Overview
"A picture is worth a thousand words.". A computer usage chart is believed to be more useful than the mere usage data as you might have been able to produce with the python script for your previous assignments. The scripting task for this assignment is to present the usage data produced by the usage_report python script in a graphical chart form.
There are two modules you can use to make such a task easy to achieve:
- openpyxl - A Python library to read/write Excel 2010 xlsx/xlsm files
- matplotlib - a Python 2D plotting library
You also need to update your usage_report for assignment 1 to support command line options to select the type of report to generate.
Instructions
The task for this assignment is write a python script which takes the usage data (daily report by user) generate by your usage_report program and present the data in Bar-Chart form. You can use either one of the above python packages to complete the task.
Use the user on the x-axis and usage on the y-axis. It there are more than 10 users, just display a bar chart for the first 10 users.
Sample run and results
- Coming soon...