Session Ready
Exercise

Unit tests as documentation

Assume that you are a new collaborator of our linear regression project on housing area and prices.

While inspecting the project, you come across a function mystery_function() in the feature module. You want to figure out what this function does. As you know, reading the unit tests might give you the answer quickly!

The unit tests for the function is available in the test module test_mystery_function.py. You can read it, and any other file that you encounter, by using the !cat command in the IPython shell.

Having read the unit tests, can you guess what mystery_function() does?

Instructions
50 XP
Possible Answers