def _get_bin_sum(bin_result):
    """
    Get the [min, max] of the sample; best-fit scatter and error.
    """
    min_val = bin_result['samples'].min()
    max_val = bin_result['samples'].max()
    sig = bin_result['sig_med_bt']
    err = bin_result['sig_err_bt']

    return min_val, max_val, sig, err