The situation: university gave us an Excel document. We have a table, just write in our data and we get some tables and plots out. I think the plots are ugly and since I need it for a public presentation, I wanted to redo the plot with seaborn. I managed to actually plot the bars. The only trouble now: I can't add the variance to the bars.
This is my table:
Label,Mean,Error
"Appearance",2.50,0.45
"Functionality",1.90,0.32
"Predictability",2.740,0.52
"Inefficiency",1.701,2.41
This is my code:
import seaborn as sb
import matplotlib.pyplot as plt
import pandas as pd
if __name__ == '__main__':
csv = pd.read_csv('res.csv')
sb.set_theme(style = "darkgrid")
sb.barplot(x = "Mean", y = "Label", data = csv, errorbar="sd")
# plt.savefig('myfile.png', bbox_inches="tight")
plt.show()