learn_subdf function

Learn sub data frame