Aan de slagGa gratis aan de slag

Leveraging documentation

When writing code for Data Science, it's inevitable that you'll need to install and use someone else's code. You'll quickly learn that using someone else's code is much more pleasant when they use good software engineering practices. In particular, good documentation makes the right way to call a function obvious. In this exercise you'll use python's help() method to view a function's documentation so you can determine how to correctly call a new method.

The list words has been loaded in your session.

Deze oefening maakt deel uit van de cursus

Software Engineering Principles in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# load the Counter function into our environment
from collections import Counter

# View the documentation for Counter.most_common
____(Counter.most_common)
Code bewerken en uitvoeren