save_df_as_csv

def save_df_as_csv(self):
        """save_df_as_csv"""

        if len(self.all_rows) == 0:
            log.info(("no df={} to save")
                     .format(self.df))
            return
        else:

            log.info(("saving "
                      "packets={} file={} rows={}")
                     .format(len(self.recv_msgs),
                             self.save_to_file,
                             len(self.df)))

            self.df.to_csv(self.save_to_file,
                           sep=",",
                           encoding="utf-8",
                           index=True)

            log.info(("done saving={}")
                     .format(self.save_to_file))