def get_pd_main_chained_feat(self, main_feat_idx=0, show_min=1):
    '\n        Transforms whole features table to get_part_dep_one output table format\n        '

    def get_xth_el(str_list: str, indexes: list):
        lst = (str_list if is_listy(str_list) else ast.literal_eval(str_list))
        lst = listify(lst)
        if (len(lst) == 1):
            return lst[0]
        elif (len(lst) > 1):
            if (len(indexes) == 1):
                return lst[indexes[0]]
            else:
                return [lst[idx] for idx in indexes]
        else:
            return None
    feat_table = self.part_dep_df
    main_feat_idx = listify(main_feat_idx)
    feat_table_copy = feat_table.copy()
    func = functools.partial(get_xth_el, indexes=main_feat_idx)
    feat_table_copy['value'] = feat_table_copy['value'].apply(func)
    feat_table_copy.drop(columns='feature', inplace=True)
    return feat_table_copy.query(f'times > {show_min}')
Transforms whole features table to get_part_dep_one output table format
def get_pd_main_chained_feat(self, main_feat_idx=0, show_min=1):
    '\n        \n        '

    def get_xth_el(str_list: str, indexes: list):
        lst = (str_list if is_listy(str_list) else ast.literal_eval(str_list))
        lst = listify(lst)
        if (len(lst) == 1):
            return lst[0]
        elif (len(lst) > 1):
            if (len(indexes) == 1):
                return lst[indexes[0]]
            else:
                return [lst[idx] for idx in indexes]
        else:
            return None
    feat_table = self.part_dep_df
    main_feat_idx = listify(main_feat_idx)
    feat_table_copy = feat_table.copy()
    func = functools.partial(get_xth_el, indexes=main_feat_idx)
    feat_table_copy['value'] = feat_table_copy['value'].apply(func)
    feat_table_copy.drop(columns='feature', inplace=True)
    return feat_table_copy.query(f'times > {show_min}')