Skip to content

Commit

Permalink
Fixed PyYAML build issues, use version 5.3.1, importlib-metadata to 4…
Browse files Browse the repository at this point in the history
….13.0
  • Loading branch information
madhavpcm committed Feb 9, 2024
1 parent a112d08 commit 0d49cdd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
20 changes: 11 additions & 9 deletions docs/feedback/expos.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,22 @@ def load_csv(file):
return data

#%%
col = "nitc19"
data = load_csv("nitc19.csv")
col = "iitpkd23"
data = load_csv("iitpkd23.csv")
del data[0]
num_samples = np.shape(data)[0]
data = np.array(data)
data = data[data[:,2]>"Phase 2"] #eliminating samples below phase 2
data = data[data[:,2]>"2"] #eliminating samples below phase 2
num_samples = np.shape(data)[0]
phase5 = data[data[:,2]>="Phase 5"]
phase5 = data[data[:,2]>="5"]
num_samples5 = np.shape(phase5)[0]
#%%
#colors=['brown', 'g', 'b', 'y', 'magenta', 'c', 'grey', 'r']
colors=['yellowgreen','orchid', 'crimson', 'royalblue','cyan' , 'red', 'grey', 'burlywood', 'salmon']
#%%
#Q1
labels = ["Phase "+str(i) for i in range(0,9)]
#labels = ["Phase "+str(i) for i in range(0,8)]
labels = [str(i) for i in range(0,8)]
labels.reverse()
count=[]
labels1=[]
Expand All @@ -48,11 +49,12 @@ def load_csv(file):
ax1.pie(count, autopct='%.0f%%', colors=colors)
ax1.axis('equal')
ax1.legend(labels1, loc='upper right', bbox_to_anchor=(1.1, 0.8))
plt.title("Number of phases completed by all students.", y=-0.05)
plt.savefig(col+"q1.png", bbox_inches='tight', transparent=True)
plt.close(fig1)
#%%
#Q2
labels = ["<5 hours", "5-10 hours", "10-15 hours", ">15 hours"]
labels = ["< 5 Hours", "5-10 Hours", "10-15 Hours", "> 15 Hours"]
count=[]
for label in labels:
count.append(sum(data[:,3]==label))
Expand All @@ -77,7 +79,7 @@ def load_csv(file):

#%%
#Q3
labels=["100%", ">90%", ">75%", ">50%"]
labels=["100% Sufficient", ">90% Sufficient", ">75% Sufficient", ">50% Sufficient"]
count=[]
for label in labels:
count.append(sum(data[:,4]==label))
Expand Down Expand Up @@ -128,7 +130,7 @@ def load_csv(file):

#%%
#Q5
labels = ["The lab brought about considerable improvement in my coding skills", "The lab brought about moderate improvement in my coding skills", "The lab did not bring about a serious improvement in my coding skills"]
labels = ["The lab brought a considerable improvement", "The lab brought about moderate improvement", "This lab did not bring about a serious improvement"]
count=[]
for label in labels:
count.append(sum(data[:,6]==label))
Expand All @@ -154,7 +156,7 @@ def load_csv(file):

#%%
#Q6
labels=["Sufficient", "Computer Organization / Hardware", "Compilers", "Data Structures", "Programming"]
labels=["Sufficient", "Computer Organization/Hardware", "Compilers", "Datastructures", "Programming"]
count=[]
for label in labels:
count.append(sum([label in val for val in data[:,7]]))
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
click==8.0.1
ghp-import==2.0.1
htmlmin==0.1.12
importlib-metadata==4.6.1
importlib-metadata==4.13.0
Jinja2==3.0.1
jsmin==3.0.1
Markdown==3.3.4
Expand All @@ -16,7 +16,7 @@ Pygments==2.9.0
pymdown-extensions==8.2
pyparsing==2.4.7
python-dateutil==2.8.1
PyYAML==5.4.1
PyYAML==5.3.1
pyyaml-env-tag==0.1
six==1.16.0
watchdog==2.1.3
Expand Down

0 comments on commit 0d49cdd

Please sign in to comment.