code: def _xls2shape(self):
          
  
          sheets = self.workbook.sheets()
          nrows = 1
          ncols = 1
          for sheet in sheets:
              nrows = max(nrows, sheet.nrows)
              ncols = max(ncols, sheet.ncols)
          ntabs = len(sheets)
  
          self.code_array.shape = nrows, ncols, ntabs
docs: Updates shape in code_array