Vaccine Progress in India: Visualization through Data
3 min readApr 20, 2021
India is going through the worst of the corona at the moment and the vaccine progress has been sluggish. So I wanted to check how we are doing with vaccinations compared to other top nations.
Vaccine Progress
Let’s code, Download the data from Kaggle and open the Jupyter notebook. We have two files. 1 with vaccination data(country.csv) and another with vaccine data(countryman.csv).
import seaborn as sns
import matplotlib
import matplotlib.pyplot as plt
%matplotlib inlinesns.set_style('darkgrid')
matplotlib.rcParams['font.size'] = 14
matplotlib.rcParams['figure.figsize'] = (9, 5)
matplotlib.rcParams['figure.facecolor'] = '#00000000'
import pyforestcountry=pd.read_csv("countryvac.csv")
countryman=pd.read_csv("countryman.csv")
country.info()
countryman.info()
country
print("Total countries using vaccination:", country["country"].nunique())
print("Unique vaccines used:", country["vaccines"].nunique())
print("Total people vaccinated so far:",country.daily_vaccinations.sum()/1000000 )
Visualization
country[country['country']=='India'].plot();
plt.figure(figsize=(12,6))
plt.plot(country[country['country']=='India'].date,country[country['country']=='India'].total_vaccinations);
plt.plot(country[country['country']=='India'].date,country[country['country']=='India'].daily_vaccinations);
plt.plot(country[country['country']=='India'].date,country[country['country']=='India'].people_fully_vaccinated);plt.xlabel("Date")
plt.ylabel("Total vaccination in 10 Millions")plt.title("Vaccination drive of India");
plt.legend(['Total vaccinations','Daily vaccinations','People fully vaccinated']);
plt.figure(figsize=(12,6))
plt.plot(country[country['country']=='India'].date,country[country['country']=='India'].total_vaccinations);
plt.plot(country[country['country']=='France'].date,country[country['country']=='France'].total_vaccinations);
plt.plot(country[country['country']=='United States'].date,country[country['country']=='United States'].total_vaccinations);
plt.plot(country[country['country']=='Germany'].date,country[country['country']=='Germany'].total_vaccinations);
plt.plot(country[country['country']=='China'].date,country[country['country']=='China'].total_vaccinations);
plt.plot(country[country['country']=='United Kingdom'].date,country[country['country']=='United Kingdom'].total_vaccinations);plt.xlabel("Date")
plt.ylabel("Total vaccination in 100 Millions")plt.title("Major countries in vaccination process by Total vaccination");
plt.legend(['India','France','United States','Germany','China','United Kingdom']);
plt.figure(figsize=(12,6))
plt.plot(country[country['country']=='India'].date,country[country['country']=='India'].daily_vaccinations);
plt.plot(country[country['country']=='France'].date,country[country['country']=='France'].daily_vaccinations);
plt.plot(country[country['country']=='United States'].date,country[country['country']=='United States'].daily_vaccinations);
plt.plot(country[country['country']=='Germany'].date,country[country['country']=='Germany'].daily_vaccinations);
plt.plot(country[country['country']=='China'].date,country[country['country']=='China'].daily_vaccinations);
plt.plot(country[country['country']=='United Kingdom'].date,country[country['country']=='United Kingdom'].daily_vaccinations);plt.xlabel("Date")
plt.ylabel("Daily vaccinations in 10 Millions")plt.title("Major countries in vaccination process by Daily vaccination");
plt.legend(['India','France','United States','Germany','China','United Kingdom']);
plt.figure(figsize=(12,6))
plt.plot(country[country['country']=='India'].date,country[country['country']=='India'].people_fully_vaccinated);
plt.plot(country[country['country']=='France'].date,country[country['country']=='France'].people_fully_vaccinated);
plt.plot(country[country['country']=='United States'].date,country[country['country']=='United States'].people_fully_vaccinated);
plt.plot(country[country['country']=='Germany'].date,country[country['country']=='Germany'].people_fully_vaccinated);
plt.plot(country[country['country']=='China'].date,country[country['country']=='China'].people_fully_vaccinated);
plt.plot(country[country['country']=='United Kingdom'].date,country[country['country']=='United Kingdom'].people_fully_vaccinated);plt.xlabel("Date")
plt.ylabel("People fully vaccinated in 10 Millions")plt.title("Major countries in vaccination process by People fully vaccinated");
plt.legend(['India','France','United States','Germany','China','United Kingdom']);