Data science - Revision 2

not sold on why there is a type check here?