text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import pandas as pd

import seaborn as sns

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)
centre_circle = plt.Circle((0, 0), 0.7, fc='white')
fig = plt.gcf()
fig.gca().add_artist(centre_circle)
plt.tight_layout()

df2 = pd.read_csv('../input/covid-19-india/hotspot.csv')

df2.Red

df2.State

df2.dropna

df3 = df2.drop(37)

plt.hlines(y=df3['State'], xmin=0, xmax=40, color='grey', alpha=0.4)

df4 = pd.read_csv('../input/covid-19-india/hotty.csv')

df4.columns

hotty = pd.pivot_table(df4, values=['Red', 'Orange', 'Green', 'Total'], index='State', aggfunc='max')
state_names = list(hotty.index)
hotty['State'] = state_names
plt.figure(figsize=(25, 10))
sns.set_color_codes('pastel')