Aan de slagGa gratis aan de slag

Importing Python modules

Modules (sometimes called packages or libraries) help group together related sets of tools in Python. In this exercise, we'll examine two modules that are frequently used by Data Scientists:

  1. statsmodels: used in machine learning; usually aliased as sm
  2. seaborn: a visualization library; usually aliased as sns

Note that each module has a standard alias, which allows you to access the tools inside of the module without typing as many characters. For example, aliasing lets us shorten seaborn.scatterplot() to sns.scatterplot().

Deze oefening maakt deel uit van de cursus

Introduction to Data Science in Python

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Use an import statement to import statsmodels
____ ____
Code bewerken en uitvoeren