text_plain_output_1.png image_output_2.png image_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

import matplotlib.pyplot as plt
import seaborn as sns
df = pd.read_csv('/kaggle/input/covid19-dataset/Covid Data.csv')

df.loc[df.DATE_DIED != '9999-99-99', 'DATE_DIED'] = 1
df.loc[df.DATE_DIED == '9999-99-99', 'DATE_DIED'] = 2

age_range = [-float('inf'), 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, float('inf')]
df['AGE'] = pd.cut(df['AGE'], age_range, labels=False)
sns.catplot(x='AGE', y='CLASIFFICATION_FINAL', data=df, kind='bar')
sns.catplot(x='AGE', data=df, kind='count')