text_plain_output_2.png text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import numpy as np

data = np.genfromtxt('/kaggle/input/da-assignment2/wdbc.data', delimiter=',')
data = np.delete(data, [0, 1], axis=1)
print(data.shape)
file = open('/kaggle/input/wdbc-labels/wdbc_labels.csv', 'r')
lines = file.readlines()
count = 0
labels = np.zeros((data.shape[0], 1))
for line in lines:
    if line[0] == 'M':
        labels[count] = 0
    else:
        labels[count] = 1
    count = count + 1
print(labels.shape)
plt.hist(labels)