code: def data_to_df(self, sysbase=False):
          
  
          p_dict_comp = self.data_to_dict(sysbase=sysbase)
          self._check_pd()
  
          self.param_df = pd.DataFrame(data=p_dict_comp).set_index('idx')
  
          return self.param_df
docs: Return a pandas.DataFrame of device parameters.
          :param sysbase: save per unit values in system base