Importing Modules
But Python itself can't cover absolutely every problem that can arise. That's why there are many packages/modules written. As a data analyst, you will need to learn several packages for manipulating and visualizing data.
To import a specific library (library_name
) use import library_name
. If you need only specific object from this library, you can specify it as follows: from library_name import function
. Most likely you will use methods/attributes from imported library/function, so writing full library'/function' name is not convenient. You can set an alias while importing by adding as alias
in the end. For instance, from datetime import time as t
.
Bedankt voor je feedback!
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Stel mij vragen over dit onderwerp
Vat dit hoofdstuk samen
Toon voorbeelden uit de praktijk
Awesome!
Completion rate improved to 2.7
Importing Modules
Veeg om het menu te tonen
But Python itself can't cover absolutely every problem that can arise. That's why there are many packages/modules written. As a data analyst, you will need to learn several packages for manipulating and visualizing data.
To import a specific library (library_name
) use import library_name
. If you need only specific object from this library, you can specify it as follows: from library_name import function
. Most likely you will use methods/attributes from imported library/function, so writing full library'/function' name is not convenient. You can set an alias while importing by adding as alias
in the end. For instance, from datetime import time as t
.
Bedankt voor je feedback!