text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import pandas as pd

df1 = pd.read_csv('../input/indiastate/data state.csv')

target = pd.DataFrame(df1.Deceased, columns=['Deceased'])

target = pd.DataFrame(df1.Deceased, columns=['Deceased'])
X = df1[['Confirmed', 'Active', 'Recovered', 'Deceased']]
y = target['Deceased']

labels = list(df1.State)
decease = list(df1.Deceased)

explode = []
for i in labels:
    explode.append(0.05)
plt.figure(figsize=(15, 10))
plt.pie(decease, labels=labels, autopct='%1.1f%%', startangle=9, explode=explode)
centre_circle = plt.Circle((0, 0), 0.7, fc='white')
fig = plt.gcf()
fig.gca().add_artist(centre_circle)
plt.tight_layout()