Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre 2-D Arrays | Introduction to NumPy
Introduction to Data Analysis in Python
course content

Contenu du cours

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
2-D Arrays

What is a two-dimensional array?

In the general case, two-dimensional arrays are called matrices: such mathematical structures that consist of rows and columns. If it will be easier for you, then you can represent the matrix as a table. To create a 2-D array, pass list of lists as the parameter of np.array() function (nested lists must be the same length).

12345
import numpy as np # Creating array arr = np.array([[5.2, 3.0, 4.5], [9.1, 0.1, 0.3]]) # Displaying array print(arr)
copy
question mark

Select all options with the INcorrect code of creating 2-D arrays.

Select the correct answer

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 5. Chapitre 5

Demandez à l'IA

expand
ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

course content

Contenu du cours

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
2-D Arrays

What is a two-dimensional array?

In the general case, two-dimensional arrays are called matrices: such mathematical structures that consist of rows and columns. If it will be easier for you, then you can represent the matrix as a table. To create a 2-D array, pass list of lists as the parameter of np.array() function (nested lists must be the same length).

12345
import numpy as np # Creating array arr = np.array([[5.2, 3.0, 4.5], [9.1, 0.1, 0.3]]) # Displaying array print(arr)
copy
question mark

Select all options with the INcorrect code of creating 2-D arrays.

Select the correct answer

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 5. Chapitre 5
Nous sommes désolés de vous informer que quelque chose s'est mal passé. Qu'est-il arrivé ?
some-alt