Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Importing Modules | Functions and Modules
Introduction to Data Analysis in Python
course content

Kurssisisältö

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

book
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.

question mark

Choose the appropriate way to import AgglomerativeClustering object from sklearn.cluster library with the alias AC.

Select the correct answer

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 4. Luku 2

Kysy tekoälyä

expand
ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

course content

Kurssisisältö

Introduction to Data Analysis in Python

Introduction to Data Analysis in Python

1. Basics
2. Data Types
3. Control Flow
4. Functions and Modules
5. Introduction to NumPy

book
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.

question mark

Choose the appropriate way to import AgglomerativeClustering object from sklearn.cluster library with the alias AC.

Select the correct answer

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 4. Luku 2
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt