text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('/kaggle/input/latest-covid19-india-statewise-data/Latest Covid-19 India Status.csv')

tc = df.sort_values(by='Total Cases', ascending=False)
tc

plt.xticks(rotation=90)
plt.ticklabel_format(style='plain', axis='y')

ta = df.sort_values(by='Active', ascending=False)
ta

plt.xticks(rotation=90)
plt.ticklabel_format(style='plain', axis='y')

td = df.sort_values(by='Discharged', ascending=False)
td

plt.xticks(rotation=90)
plt.ticklabel_format(style='plain', axis='y')

tdh = df.sort_values(by='Deaths', ascending=False)
tdh

plt.xticks(rotation=90)
plt.ticklabel_format(style='plain', axis='y')

plt.pie(x='Deaths', data=tdh[:5], labels=tdh['State/UTs'][:5], autopct='%0.2f%%')
plt.title('top 5 deaths state %')
plt.show()