code: def resizeColumnsToContents(self):
          
          self._autosized_cols = set()
          self._resizeColumnsToContents(self.table_level,
                                        self.table_index, self._max_autosize_ms)
          self._update_layout()
docs: Resize the columns to its contents.