def correct_labels(ax):
    labels = [item.get_text() for item in ax.get_xticklabels()]
days = [label.split(' ')[0] for label in labels]
Pandas Plots: Separate color for weekends, pretty printing times on x axis