def remap_column_names(data_names, name_map):
    """ Remap data array column names using dictionary map.
    For each column name that matches a key in name_map, the column name is replaced with
    that key's value.

    Args:
        data_names (str, nx1 tuple): list of column names taken from structured np array
        name_map (dict): dictionary with keys matching history file column names to be
                         replaced by the corresponding values

    Returns:
        (str, nx1 tuple): New list of column names
    """
    return tuple(name_map.get(name, name) for name in data_names)
    # get(name, name) means it will keep the current name if not found in dictionary