There are two variables p.speed and boosted_p.speed. Plot two boxplots with their values next to each other on the same graph
def plot_speed(data, speed_name, boosted_speed_name): fig = plt.figure() boxes = fig.add_subplot(1,2,1) boxes = fig.add_subplot(1,2,2) data[speed_name].plot.box(ax = boxes, color = 'blue') data[boosted_speed_name].plot.box(ax = boxes, color = 'red') plt.show()