def replace_headers(instance, header_replacements_list):
    "\n        Replaces headers of a dataset.\n\n        Args:\n            header_replacements_list(list): A list of strings to replace headers\n\n        Returns:\n            Nothing; modifies the provided dataset.\n\n        Examples:\n            >>> example_data = [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]\n            >>> my_list_data = ListData()\n            >>> my_list_data.dataset = example_data\n            >>> print(my_list_data.dataset)\n            [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]\n            >>> my_list_data.replace_headers(['d', 'm'])\n            >>> print(my_list_data.dataset)\n            [['d', 'm'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]\n        "
    if (len(header_replacements_list) == len(instance.headers())):
        pass
    else:
        raise Exception((((((('header_replacements_list should be the same length with instance.headers()' + '\n') + 'header_replacements_list length: ') + str(len(header_replacements_list))) + '\n') + 'instance.headers() length: ') + str(len(instance.headers()))))
    for (i, each_header) in enumerate(header_replacements_list):
        instance.dataset[0][i] = each_header
Replaces headers of a dataset.

Args:
    header_replacements_list(list): A list of strings to replace headers

Returns:
    Nothing; modifies the provided dataset.

Examples:
    >>> example_data = [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]
    >>> my_list_data = ListData()
    >>> my_list_data.dataset = example_data
    >>> print(my_list_data.dataset)
    [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]
    >>> my_list_data.replace_headers(['d', 'm'])
    >>> print(my_list_data.dataset)
    [['d', 'm'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]
def replace_headers(instance, header_replacements_list):
    "\n        Replaces headers of a dataset.\n\n        Args:\n            header_replacements_list(list): A list of strings to replace headers\n\n        Returns:\n            Nothing; modifies the provided dataset.\n\n        Examples:\n            >>> example_data = [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]\n            >>> my_list_data = ListData()\n            >>> my_list_data.dataset = example_data\n            >>> print(my_list_data.dataset)\n            [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]\n            >>> my_list_data.replace_headers(['d', 'm'])\n            >>> print(my_list_data.dataset)\n            [['d', 'm'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]\n        "
    if (len(header_replacements_list) == len(instance.headers())):
        pass
    else:
        raise Exception((((((('header_replacements_list should be the same length with instance.headers()' + '\n') + 'header_replacements_list length: ') + str(len(header_replacements_list))) + '\n') + 'instance.headers() length: ') + str(len(instance.headers()))))
    for (i, each_header) in enumerate(header_replacements_list):
        instance.dataset[0][i] = each_header