code: def backup_histories_df(self):
          
          backup = {}
          for point in self.points:
              if point.history.dtypes == object:
                  backup[point.properties.name] = (
                      point.history.replace(["inactive", "active"], [0, 1])
                      .resample("1s")
                      .mean()
                  )
              else:
                  backup[point.properties.name] = point.history.resample("1s").mean()
  
          df = pd.DataFrame(dict([(k, pd.Series(v)) for k, v in backup.items()]))
          return df.fillna(method="ffill")
docs: Build a dataframe of the point histories