Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fix.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix #1 added -- You can safely remove this line --
Fix #2 added -- You can safely remove this line --
17 changes: 17 additions & 0 deletions plot.py
Original file line number Diff line number Diff line change
@@ -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')