def _set_has_no_columns(self, has_no_column, col_avg, col_last, fields):
        """
        Regenerate has_no_column by adding the amount of columns at the end
        """
        for index, field in has_no_column.items():
            if index == len(has_no_column):
                field_name = "{field}|{col_last}".format(
                    field=field, col_last=col_last
                )
                has_no_column[index] = self._return_field(field_name, fields)
            else:
                field_name = "{field}|{col_avg}".format(
                    field=field, col_avg=col_avg
                )
                has_no_column[index] = self._return_field(field_name, fields)
        return has_no_column
def _set_has_no_columns ( self , has_no_column , col_avg , col_last , fields ) : for index , field in has_no_column . items ( ) : if index == len ( has_no_column ) : field_name = "{field}|{col_last}" . format ( field = field , col_last = col_last ) has_no_column [ index ] = self . _return_field ( field_name , fields ) else : field_name = "{field}|{col_avg}" . format ( field = field , col_avg = col_avg ) has_no_column [ index ] = self . _return_field ( field_name , fields ) return has_no_column
Regenerate has_no_column by adding the amount of columns at the end