code: def standardize(table, option):
      
      if option == 'table':
          mean = np.mean(table)
          std = np.std(table)
      t = []
      for row in table:
          t_row = []
          if option != 'table':
              mean = np.mean(row)
              std = np.std(row)
          for i in row:
              if std == 0:
                  t_row.append(0)
              else:
                  t_row.append((i - mean)/std)
          t.append(t_row)
      return t
docs: standardize
      Z = (X - mean) / (standard deviation)