text_plain_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

train_data = pd.read_csv('/kaggle/input/playground-series-s3e13/train.csv')
test_data = pd.read_csv('/kaggle/input/playground-series-s3e13/test.csv')

plt.xticks(rotation=90)

train_data['symptom_sum'] = train_data.iloc[:, 1:-1].sum(axis=1)

plt.hist(train_data['symptom_sum'], bins=len(np.unique(train_data['symptom_sum'])))
plt.title('Histogram of symptom count')
plt.xlabel('Symptom count')
plt.ylabel('Number of entries')
plt.show()