def filter_d(mzs, rts, ccss, data):
    """
filter_d
    description:
        a helper function for filtering data
        given M/Z, RT, CCS ranges and a DataFrame containing data,
        find and returns all data within that range.
        * CCS tolerance is absolute in this case, NOT a percentage *
    parameters:
        mzs (list(flaot)) -- mz [0] and tolerance [1]
        rts (list(float)) -- rt [0] and tolerance [1]
        ccss (list(float)) -- ccs [0] and tolerance [1]
        data (pandas.DataFrame) -- DataFrame representation of the data
"""
    # removed all of the casts to float, that should happen at input time not here
    filtered = data[(data[0] < mzs[0] + mzs[1]) & (data[0] > mzs[0] - mzs[1]) &
                    (data[1] < rts[0] + rts[1]) & (data[1] > rts[0] - rts[1]) &
                    (data[2] < ccss[0] + ccss[1]) & (data[2] > ccss[0] - ccss[1])]
    return filtered