code: def _get_table_data(self):
          
          data = self._simplify_shape(
                  self.table_widget.get_data())
          if self.table_widget.array_btn.isChecked():
              return array(data)
          elif pd and self.table_widget.df_btn.isChecked():
              info = self.table_widget.pd_info
              buf = io.StringIO(self.table_widget.pd_text)
              return pd.read_csv(buf, **info)
          return data
docs: Return clipboard processed as data