human
Complete the below
def data_info_factory(names, funcs):

    ''''Factory to create a function that can be used as an ``option``
    for outputting data object summary information.
    Examples
    >>> from astropy.utils.data_info import data_info_factory
    >>> from astropy.table import Column
    >>> c = Column([4., 3., 2., 1.])
    >>> mystats = data_info_factory(names=[\'min\', \'median\', \'max\'],
    ...                             funcs=[np.min, np.median, np.max])
    >>> c.info(option=mystats)
    min = 1.0
    median = 2.5
    max = 4.0
    n_bad = 0
    length = 4
    Parameters
    names : list
    List of information attribute names
    funcs : list
    List of functions that compute the corresponding information attribute
    Returns
    func : function
    Function that can be used as a data info option'
    '''

Give me a Python code to compute the corresponding information attribute?
assistant
#Here is Python code to compute the corresponding information attribute
.
    def func(dat):
        outs = []
        for (name, func) in zip(names, funcs):
            try:
                if isinstance(func, six.string_types):
                    out = getattr(dat, func)()
                else:
                    out = func(dat)
            except Exception:
                outs.append('--')
            else:
                outs.append(str(out))
        return OrderedDict(zip(names, outs))
    return func