I am trying to create a dot-plot/ggplot in Python for a DataFrame looking like this:
layers_time = {'2 layers': [20.6885, 25.1765, 18.7503, 19.2090, 19.2548],
'3 layers': [20.4360, 27.5285, 20.1958, 18.9536, 20.1673],
'4 layers': [18.1703, 21.9665, 17.0667, 17.3353, 16.2638],
'5 layers': [19.3265, 25.7931, 17.9827, 18.5448, 18.8970],
'6 layers': [19.7180, 24.7097, 20.7460, 19.7300, 18.2760]
}
layers_time = pd.DataFrame(layers_time, columns=['2 layers', '3 layers',
'4 layers', '5 layers', '6 layers'])
All I want is for the column names to be the x-values and their corresponding values as dots on the y-axis.
Also, is there a smart way to include the average of those values as a dot with a different color?
I've tried answers from similar questions, but they do not work as I have different x and y sizes?


