bucketplot.py
def x_edges_unit(df_agg):
    """
    Set the x-axis edges to be the edges of equally spaced intervals
    of width 1.
    """
    res = df_agg.assign(
        interval=lambda df: pd.interval_range(start=0., periods=df.shape[0], freq=1.),
        x_left=lambda df: pd.IntervalIndex(df['interval']).left,
        x_right=lambda df: pd.IntervalIndex(df['interval']).right,
    ).drop(columns='interval')
    return(res)

    Set the x-axis edges to be the edges of equally spaced intervals
    of width 1.
    
Set the x-axis edges to be the edges of equally spaced intervals
of width 1.
Set the x - axis edges to be the edges of equally spaced intervals of width 1 .
def x_edges_unit(df_agg):
    res = df_agg.assign(
        interval=lambda df: pd.interval_range(start=0., periods=df.shape[0], freq=1.),
        x_left=lambda df: pd.IntervalIndex(df['interval']).left,
        x_right=lambda df: pd.IntervalIndex(df['interval']).right,
    ).drop(columns='interval')
    return(res)
def x_edges_unit ( df_agg ) : res = df_agg . assign ( interval = lambda df : pd . interval_range ( start = 0. , periods = df . shape [ 0 ] , freq = 1. ) , x_left = lambda df : pd . IntervalIndex ( df [ 'interval' ] ) . left , x_right = lambda df : pd . IntervalIndex ( df [ 'interval' ] ) . right , ) . drop ( columns = 'interval' ) return ( res )
Set the x-axis edges to be the edges of equally spaced intervals
of width 1.
Set the x - axis edges to be the edges of equally spaced intervals of width 1 .
"""
    Set the x-axis edges to be the edges of equally spaced intervals
    of width 1.
    """
df_agg