text_plain_output_1.png
import numpy as np

import pandas as pd

train_data = pd.read_csv('/kaggle/input/heartbeat/mitbih_train.csv', header=None)

np.random.seed(2018)
sample = np.random.choice(train_data.shape[0], 200, replace=False)
subset = train_data.loc[sample]

percentages = [count / subset.shape[0] * 100 for count in subset[187].value_counts()]
percentages[0]