text_plain_output_1.png
import matplotlib.pyplot as plt

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')

print('Number of missing values in each column:')
print(train_data.isnull().sum())
print('Number of duplicate rows:')
print(train_data.duplicated().sum())
print('Distribution of the target variable:')
print(train_data['prognosis'].value_counts())
plt.hist(train_data['prognosis'], bins=30, width=0.5)
plt.title('Histogram of the target variable')
plt.xticks(rotation=90)
plt.show()