diff --git a/fix.txt b/fix.txt index e69de29b..0f730626 100644 --- a/fix.txt +++ b/fix.txt @@ -0,0 +1,2 @@ +Fix #1 added -- You can safely remove this line -- +Fix #2 added -- You can safely remove this line -- diff --git a/plot.py b/plot.py new file mode 100644 index 00000000..cd462420 --- /dev/null +++ b/plot.py @@ -0,0 +1,17 @@ +# i want to do a histogram of the data radius_mean variable in breastcancer.csv + +import pandas as pd +import matplotlib.pyplot as plt + +# read the data +data = pd.read_csv('breastcancer.csv') +# plot the histogram +plt.hist(data['radius_mean'], bins=20, color='blue', edgecolor='black') +plt.title('Histogram of radius_mean') +plt.xlabel('Radius mean') +plt.ylabel('Frequency') +plt.show() + +# save the plot +plt.savefig('radius_mean_histogram.png') +