code: def dt_avg(self, print_output=True, output_file="dt_query.csv"):
  
          
  
          avg = self.dt.mean(axis=2)
          if print_output:
              np.savetxt(output_file, avg, delimiter=",")
          return avg
docs: Compute average document-topic matrix,
          and print to file if print_output=True.