df.ix to df.iloc in split_data method