code: def to_dataframe(self) -> "pandas.DataFrame":
          
          import pandas as pd
          df = pd.DataFrame(
              {
                  "left": self.bin_left_edges,
                  "right": self.bin_right_edges,
                  "frequency": self.frequencies,
                  "error": self.errors,
              },
              columns=["left", "right", "frequency", "error"])
          return df
docs: Convert to pandas DataFrame.
  
          This is not a lossless conversion - (under/over)flow info is lost.