import typing


def exclude_header(
    headers: typing.Sequence[str], exclude: typing.Set[str]
) -> typing.Sequence[typing.Optional[str]]:
    """
    Exclude header.

    Exclude columns from header by changing the entry to None.

    :param headers: headers
    :param exclude: columns to be excluded
    :returns: header with columns excluded

    """
    excluded_headers = [None if current in exclude else current for current in headers]
    return excluded_headers