src/transformers/models/tapas/tokenization_tapas.py/TapasTokenizer/_get_num_columns
class TapasTokenizer:    def _get_num_columns(self, table):
        num_columns = table.shape[1]
        if num_columns >= self.max_column_id:
            raise ValueError("Too many columns")
        return num_columns