def _make_box(x):
    '\n    Make a box that encompasses all the data\n\n    Parameters\n    ----------\n    x : DataFrame\n\n    Returns\n    -------\n    DataFrame\n\n\n    '

    def limits(x):
        if (pd.api.types.is_integer_dtype(x.dtype) or pd.api.types.is_float_dtype(x.dtype)):
            return pd.Series([x.min(), x.max()])
        else:
            return pd.Series([set(x), set(x)])
    return x.apply(limits)
Make a box that encompasses all the data

Parameters
----------
x : DataFrame

Returns
-------
DataFrame
def _make_box(x):
    '\n    Make a box that encompasses all the data\n\n    Parameters\n    ----------\n    x : DataFrame\n\n    Returns\n    -------\n    DataFrame\n\n\n    '

    def limits(x):
        if (pd.api.types.is_integer_dtype(x.dtype) or pd.api.types.is_float_dtype(x.dtype)):
            return pd.Series([x.min(), x.max()])
        else:
            return pd.Series([set(x), set(x)])
    return x.apply(limits)