def _preprocess_table_dp(self): if self._is_complete_table_dp_preprocess: return self._logger.logger.debug("_preprocess_table_dp") if typepy.is_empty_sequence(self.header_list) and self._use_default_header: self.header_list = [ convert_idx_to_alphabet(col_idx) for col_idx in range(len(self.__value_matrix_org[0])) ] try: self._table_value_dp_matrix = self._dp_extractor.to_dp_matrix( to_value_matrix(self.header_list, self.__value_matrix_org) ) except TypeError as e: self._logger.logger.debug(msgfy.to_error_message(e)) self._table_value_dp_matrix = [] self._column_dp_list = self._dp_extractor.to_column_dp_list( self._table_value_dp_matrix, self._column_dp_list ) self._is_complete_table_dp_preprocess = True
def __get_default_header(self, col_idx: int) -> str: i = 0 while True: header = convert_idx_to_alphabet(col_idx + i) if header not in self.__upper_headers: return header i += 1
def __get_default_header(self, col_idx): i = 0 while True: header = convert_idx_to_alphabet(col_idx + i) if header not in self.__upper_headers: return header i += 1