def x_edges_interval(df_agg):
    """Set the x-axis edges to be the edges of the bucket interval"""
    res = df_agg.assign(
        x_left=lambda df: df.index.left,
        x_right=lambda df: df.index.right,
    )
    return(res)