def _general2partial(self, df):
    if (len(df) == 0):
        return None
    copy_df = df.copy()
    feature = copy_df['feature'].iloc[0]
    copy_df.drop(columns='feature', inplace=True)
    copy_df.rename(columns={'value': feature}, inplace=True)
    return copy_df
def _general2partial(self, df):
    if (len(df) == 0):
        return None
    copy_df = df.copy()
    feature = copy_df['feature'].iloc[0]
    copy_df.drop(columns='feature', inplace=True)
    copy_df.rename(columns={'value': feature}, inplace=True)
    return copy_df