code: def filter_sum(self, inst_rc, threshold, take_abs=True):
      '''
      Filter a network's rows or columns based on the sum across rows or columns.
      '''
      inst_df = self.dat_to_df()
      if inst_rc == 'row':
        inst_df = run_filter.df_filter_row_sum(inst_df, threshold, take_abs)
      elif inst_rc == 'col':
        inst_df = run_filter.df_filter_col_sum(inst_df, threshold, take_abs)
      self.df_to_dat(inst_dff filter_sum(self, inst_rc, threshold, take_abs=True):
      '''
      Filter a network's rows or columns based on the sum across rows or columns.
      '''
      inst_df = self.dat_to_df()
      if inst_rc == 'row':
        inst_df = run_filter.df_filter_row_sum(inst_df, threshold, take_abs)
      elif inst_rc == 'col':
        inst_df = run_filter.df_filter_col_sum(inst_df, threshold, take_abs)
      self.df_to_dat(inst_df)
docs: Filter a network's rows or columns based on the sum across rows or columns.