Member-only story

Is Covid-19 Still A Threat? A Python Data Analysis

How many Covid-19 cases are there today?

7 min readDec 18, 2022

--

Is Covid-19 Still A Threat? Image by Ajay kumar Singh from Pixabay.
Is Covid-19 Still A Threat? Image by Ajay Kumar Singh from Pixabay.

Each individual COVID-19 case is dramatic and each death is a tragedy, but is it still a threat to the major parts of our society? Welcome to Python Data Science December #17.

We will explore the COVID-19 cases & deaths over time for different countries in Europe using Python Pandas, Plotly & Matplotlib. All resources, datasets, required Python libraries & installations are listed at the end of the story, in the chapter Summary & Resources.

📅 The Data

I came across a COVID-19 dataset for the countries in the European Union from Eurostat. We will use it as the baseline for our article today.

I am using Python Jupyter notebook to examine the data, but you can also just take a regular Python script. To get a first impression of the data, let’s install & import Pandas and read the file into a Pandas DataFrame.

import pandas as pd
df = pd.read_csv('data.csv')

First, let us explore the dataset running df.info().

df.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 9486 entries, 0 to 9485
Data columns (total 11 columns):
# Column Non-Null Count Dtype
--- …

--

--

Techletters
Techletters

Written by Techletters

#ai #datascience #salesforce #crypto #kafka #python — Follow me: https://techletters.medium.com/membership

No responses yet

Write a response