code: def load_df(self, df):
      '''
      Load Pandas DataFrame.
      '''
      # self.__init__()
      self.reset()
  
      df_dict = {}
      df_dict['mat'] = deepcopy(df)
      # always define category colors if applicable when loading a df
      data_formats.df_to_dat(self, df_dict, define_cat_colors=Truef load_df(self, df):
      '''
      Load Pandas DataFrame.
      '''
      # self.__init__()
      self.reset()
  
      df_dict = {}
      df_dict['mat'] = deepcopy(df)
      # always define category colors if applicable when loading a df
      data_formats.df_to_dat(self, df_dict, define_cat_colors=True)
docs: Load Pandas DataFrame.