bucketplot.py
def x_point_mid(df_agg):
    """Set the x_point to be mid-way between x_left and x_right"""
    res = df_agg.assign(
        x_point=lambda df: (df['x_left'] + df['x_right']) / 2.
    )
    return(res)
Set the x_point to be mid-way between x_left and x_right
Set the x_point to be mid-way between x_left and x_right
Set the x_point to be mid - way between x_left and x_right
def x_point_mid(df_agg):
    res = df_agg.assign(
        x_point=lambda df: (df['x_left'] + df['x_right']) / 2.
    )
    return(res)
def x_point_mid ( df_agg ) : res = df_agg . assign ( x_point = lambda df : ( df [ 'x_left' ] + df [ 'x_right' ] ) / 2. ) return ( res )
Set the x_point to be mid-way between x_left and x_right
Set the x_point to be mid - way between x_left and x_right
"""Set the x_point to be mid-way between x_left and x_right"""
df_agg