code: def convert_to_df(self):
          
  
          log.info(("converting={}")
                   .format(len(self.all_rows)))
  
          if len(self.all_rows) == 0:
              return
  
          self.df = pd.DataFrame(self.all_rows).set_index("idx")
  
          if len(self.df) != len(self.all_rows):
              log.error(("Failed converting={} to rows={}")
                        .format(len(self.all_rows),
                                len(self.df)))
          else:
              log.info(("converted={} into rows={}")
                       .format(len(self.all_rows),
                               len(self.df)))
docs: convert_to_df