dataframe is proper encoded, model building crashed