Given a list of lists, return a list of the variable column width for each column using the arithmetic mode. Args: d - list of lists with x columns Returns: list of ints [len_1, len_2...len_x]
(self, d)
| 970 | return max(max(1, self.column_gap), max_len) |
| 971 | |
| 972 | def _get_column_widths_mode(self, d): |
| 973 | """Given a list of lists, return a list of the variable column width |
| 974 | for each column using the arithmetic mode. |
| 975 | |
| 976 | Args: d - list of lists with x columns |
| 977 | Returns: list of ints [len_1, len_2...len_x] |
| 978 | |
| 979 | """ |
| 980 | d = zip(*d) |
| 981 | return [self._mode_len(i) for i in d] |
| 982 | |
| 983 | def _get_column_widths_max(self, d): |
| 984 | """Given a list of lists, return a list of the variable column width |
no test coverage detected