Refactoring the data science solution

Since the keys are only slightly wrong, it takes longer to understand why they're incorrect. It'd be better to have them be completely wrong. Honestly, though, if you're requiring a hash with two keys, you're just better off making them proper named parameters to the method.