Improved use of list comprehension for table header labels