def assign_statistic_column(sample_headers, statistic):
    """
        Assigns the statistic column.

        Determines the column with the associated values for the specified
        statistic. This function is required only for the uniform sampler, as
        the random sampler does not need to know the values to function. Due to
        the nature of the statistic files, a conversion system is required to
        determine the associated column header for each specified statistic.
        This is done using the statistic_converter variable, which will need to
        be updated along with --calc-statistic to add more statistics.

        Parameters
        ----------
        sample_headers : list
            List of headers from the statistic file
        statistic : str
            The specified statistic

        Returns
        -------
        uniform_samples : list
            List of the uniformly sampled statistics

        Raises
        ------
        Exception
            Statistic not found. Converter likely needs to be updated
        Exception
            Specified statistic not found in headers. Likely wrong statistic
            was selected
    """
    statistic_converter = {'windowed-weir-fst': 'MEAN_FST', 'TajimaD':
        'TajimaD', 'window-pi': 'PI'}
    if statistic not in statistic_converter:
        raise Exception(
            'Statistic not found. Statistic list needs to be updated. Please contact the PPP Team.'
            )
    if statistic_converter[statistic] not in sample_headers:
        raise ValueError(
            'Statistic selected not found in file specified by --statistic-file.'
            )
    converted_statistic = statistic_converter[statistic]
    return converted_statistic
