This repository contains Python scripts for visualizing COVID-19 data using Matplotlib and Pandas. The analysis focuses on confirmed COVID-19 cases globally, with a particular emphasis on Canada.
This project aims to analyze and visualize COVID-19 confirmed cases over time. The visualizations aim to provide insights into trends and patterns in the data, helping to understand the impact of the pandemic across different regions. The analysis focuses on the cumulative confirmed cases and daily new cases across different countries.
The COVID-19 data used in this analysis is sourced from the Center for Systems Science and Engineering (CSSE) at Johns Hopkins University. The dataset provides global confirmed COVID-19 cases recorded over time, allowing for in-depth analysis and visualization.
- Data Link: CSSEGISandData GitHub repository
- Data Format: The dataset is in CSV format, containing columns for the province/state, country/region, latitude, longitude, and daily confirmed cases for various dates.
To run this project, ensure you have Python installed on your system. You will also need to install the following packages:
pip install pandas matplotlib
To run the analysis and visualize COVID-19 data, follow these steps:
- Clone the repository to your local machine using the following command:
git clone https://github.com/ZainabM872/covid19-data-analysis.git
- Navigate to the cloned directory:
cd covid19-data-analysis
- Run the Python script that contains the data analysis and visualizations. Ensure you have Python installed along with the necessary libraries:
python covid_analysis.py
- This pie chart illustrates the proportion of total confirmed cases among selected countries, providing a clear visual representation of the distribution of cases across different nations.
- This visualization displays the cumulative number of confirmed COVID-19 cases over time for selected countries, allowing users to observe trends and spikes in cases.
- This line plot shows the change in the number of cases from January 2020 to May 2023 in Canada. It helps in understanding the daily impact of COVID-19 and identifying peaks in new infections.
- This line graph shows the daily new confirmed COVID-19 cases in Canada. The x-axis represents the date, and the y-axis displays the number of new cases. This visualization helps identify trends and fluctuations in infection rates over time.