Test still fails after the split. Coud be because the nans are not being
mapped properly. Have to figure out how to correct this.