diff --git a/Correlation.png b/Correlation.png new file mode 100644 index 0000000..cc9c6d4 Binary files /dev/null and b/Correlation.png differ diff --git a/cls_assignment.py b/cls_assignment.py new file mode 100644 index 0000000..717044c --- /dev/null +++ b/cls_assignment.py @@ -0,0 +1,24 @@ +import matplotlib.pyplot as plt +import pandas as pd + +data = pd.read_csv('/Users/filippos/Documents/istherecorrelation.csv', delimiter=',') +print (data) + +fig,ax = plt.subplots() + +Graph = ax.plot(data["Year"],data['NL Beer consumption [x1000 hectoliter]'],color='red',label='Beer Consumption') +ax2=ax.twinx() +WO = ax2.plot(data["Year"],data['WO [x1000]'],color='blue',label='WO Students') +ax.set_xlabel("Year") +ax.set_ylabel("NL Beer Consumption [x1000 hectoliter]") +ax2.set_ylabel("WO [x1000]") +ax.set_title("Correlation possible?") + +legend = WO+Graph +label = [l.get_label() for l in legend] +ax.legend(legend, label, loc=0) + + +ax.grid() +fig.savefig('Correlation.png',format='jpg',dpi=300) +plt.show() \ No newline at end of file diff --git a/solution_md.md b/solution_md.md new file mode 100644 index 0000000..5ac5ff6 --- /dev/null +++ b/solution_md.md @@ -0,0 +1,13 @@ +# CLS_Seminars Assignment +by Filippos Dimopoulos, UvA_ID: 14101882 + + +## Papers pivotal to our knowledge + +* Fantastic yeasts and where to find them: the hidden diversity of dimorphic fungal pathogens [1](https://www.sciencedirect.com/science/article/pii/S136952741930013X) +* An analysis of the forces required to drag sheep over various surfaces. [2](https://www.sciencedirect.com/science/article/pii/S0003687002000716) +* The neurocognitive effects of alcohol on adolescents and college students [3](https://pubmed.ncbi.nlm.nih.gov/15530577/) + +As we can see from the plot, there is a clear correlation between the WO Students and beer consumption over the years. +There is a clear reason tho why these students drink these immense amounts. They need to drink these beers to deal with the errors when coding. +[Correlation](https://github.com/filipposdim/CS_Assignment/blob/master/Correlation.png)