Use => notation for unnamed function
Add checks of index in allowable range in get_column and get_phenotype