SRI KRISHNA DEGREE COLLEGE
Internship report on
Developing a COVID-19 Dashboard using
Python, Flask, and COVID Libraries
SUBMITTED TO
Bangalore city university
UNDER THE SUPERVISION OF
SHABAZ KHAN
In partial fulfilment of the requirements for the bachelor of
computer science
SUBMITTED BY
HITESH M
Roll no: U18HB21S0001
MAY – JUNE 2024
Table of content:
Sl.no content Pg.no
1. Introduction 5
2. Objectives 5
3. Methodologies 5
4. Tools and libraries 6
5. outcomes 7
6. Challenges and solution 7
7. conclusion 8
8. Future work 8
9. Acknowledgement 8
10. Front end 9
11. Back end 10
12. Output screenshot 11
Internship Report: Developing a COVID-19 Dashboard using Python, Flask,
and COVID Libraries
Introduction:
During my internship, I had the opportunity to develop a COVID-19 dashboard application using
Python, Flask, and various COVID-19 data libraries. The goal of the project was to create an
interactive web application that provides real-time information and visualizations on COVID-19
statistics. This report outlines the project's objectives, methodologies, tools used, and the
outcomes achieved.
Objectives:
1. *Data Acquisition*: Fetch real-time COVID-19 data from reliable sources.
2. *Data Processing*: Clean and preprocess the data for analysis.
3. *Visualization*: Create interactive charts and graphs to display COVID-19 statistics.
4. *Web Development*: Develop a web application using Flask to present the data.
5. *User Interaction*: Enable users to interact with the dashboard to view data for different
regions and time periods.
Methodologies:
1. *Data Acquisition*:
- Utilized APIs from sources like Johns Hopkins University and WHO to fetch real-time COVID-
19 data.
- Libraries used: requests, covid (COVID-19 Data API).
2. *Data Processing*:
- Cleaned and structured the data using pandas.
- Handled missing values and standardized the data format.
3. *Visualization*:
- Used matplotlib and plotly for creating static and interactive visualizations.
- Created line charts, bar charts, and maps to display various statistics such as total cases,
recoveries, and deaths.
4. *Web Development with Flask*:
- Developed the backend using Flask to serve the data and render templates.
- Created HTML templates with Jinja2 for dynamic content rendering.
- Integrated Bootstrap for responsive design.
5. *User Interaction*:
- Enabled features like filtering data by country or region.
- Provided time-series analysis to observe trends over time.
Tools and Libraries:
- *Python*: The primary programming language used for data processing and backend
development.
- *Flask*: A lightweight WSGI web application framework for building the web application.
- *COVID Libraries*: Libraries like covid for fetching COVID-19 data.
- *Pandas*: For data manipulation and analysis.
- *Matplotlib and Plotly*: For data visualization.
- *Visual Studio Code*: The IDE used for development.
- *Bootstrap*: For creating a responsive web design.
Outcomes:
- Successfully developed a functional web application that displays real-time COVID-19 data.
- Implemented various interactive visualizations to help users understand the data better.
- Enhanced user experience by providing features like data filtering and time-series analysis.
- Learned and applied best practices in web development and data visualization.
- Gained hands-on experience with Flask and other Python libraries.
Challenges and solutions:
1. *Data Accuracy and Consistency*:
- Challenge: Ensuring data accuracy from different sources.
- Solution: Cross-referenced data from multiple reliable sources and handled
discrepancies through preprocessing.
2. *Real-time Data Fetching*:
- Challenge: Handling the frequent updates in COVID-19 data.
- Solution: Implemented scheduled tasks to periodically fetch and update the
data using background jobs in Flask.
3. *Performance Optimization*:
- Challenge: Ensuring the web application performs well with large datasets.
- Solution: Optimized data queries and used efficient data structures for
handling large volumes of data.
Conclusion:
The internship project provided a valuable learning experience in
developing a data-driven web application. By integrating Python, Flask,
and various COVID-19 data libraries, I was able to create a tool that not
only displays real-time COVID-19 data but also allows for interactive
user engagement. The skills and knowledge gained during this project
will be
highly beneficial for future endeavors in data science and web
development.
Future Work
- Expand the dashboard to include more advanced analytics and predictive
modeling.
- Implement user authentication and personalized dashboards.
- Enhance the visualizations with more interactive elements and animations
- Explore deploying the application on cloud platforms for wider accessibility.
Acknowledgements:
I would like to thank my mentors and team members for their guidance
and support throughout the project. Their insights and feedback were
invaluable in the successful completion of this internship project.
Front end:
Backend:
Output: