def remove_column(instance, target_column_header):
    "\n        Removes a column from dataset.\n\n        Args:\n            target_column_header(str): Name of the column to be removed.\n\n        Returns:\n            Nothing; modifies dataset.\n\n        Examples:\n            >>> example_data = [['day', 'month', 'hour'], ['1', 'June', '12.00'], ['3', 'May', '11.00'],\n            ...                ['4', 'Jun', '15.00']]\n            >>> my_list_data = ListData()\n            >>> my_list_data.dataset = example_data\n            >>> print(my_list_data.dataset)\n            [['day', 'month', 'hour'], ['1', 'June', '12.00'], ['3', 'May', '11.00'], ['4', 'Jun', '15.00']]\n            >>> my_list_data.remove_column('hour')\n            >>> print(my_list_data.dataset)\n            [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]\n\n        "
    from preprocessor.legacy_functions.get_header_index import get_header_index
    target_index = get_header_index(target_column_header, instance.dataset)
    for (i, row) in enumerate(instance.dataset):
        del instance.dataset[i][target_index]
Removes a column from dataset.

Args:
    target_column_header(str): Name of the column to be removed.

Returns:
    Nothing; modifies dataset.

Examples:
    >>> example_data = [['day', 'month', 'hour'], ['1', 'June', '12.00'], ['3', 'May', '11.00'],
    ...                ['4', 'Jun', '15.00']]
    >>> my_list_data = ListData()
    >>> my_list_data.dataset = example_data
    >>> print(my_list_data.dataset)
    [['day', 'month', 'hour'], ['1', 'June', '12.00'], ['3', 'May', '11.00'], ['4', 'Jun', '15.00']]
    >>> my_list_data.remove_column('hour')
    >>> print(my_list_data.dataset)
    [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]
def remove_column(instance, target_column_header):
    "\n        Removes a column from dataset.\n\n        Args:\n            target_column_header(str): Name of the column to be removed.\n\n        Returns:\n            Nothing; modifies dataset.\n\n        Examples:\n            >>> example_data = [['day', 'month', 'hour'], ['1', 'June', '12.00'], ['3', 'May', '11.00'],\n            ...                ['4', 'Jun', '15.00']]\n            >>> my_list_data = ListData()\n            >>> my_list_data.dataset = example_data\n            >>> print(my_list_data.dataset)\n            [['day', 'month', 'hour'], ['1', 'June', '12.00'], ['3', 'May', '11.00'], ['4', 'Jun', '15.00']]\n            >>> my_list_data.remove_column('hour')\n            >>> print(my_list_data.dataset)\n            [['day', 'month'], ['1', 'June'], ['3', 'May'], ['4', 'Jun']]\n\n        "
    from preprocessor.legacy_functions.get_header_index import get_header_index
    target_index = get_header_index(target_column_header, instance.dataset)
    for (i, row) in enumerate(instance.dataset):
        del instance.dataset[i][target_index]