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

Contenido del Curso

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
NumPy Arrays

Arrays that are provided by NumPy perform much faster than built-in Python lists. These are crucial objects for performing calculations.

To create an array from list, use the .array() method of NumPy, passing list of values as the parameter. For example,

12345678910
# Importing the library import numpy as np # List of values val = [1, 2, 3, 4, 5] # Creating a NumPy array arr1 = np.array(val) arr2 = np.array([1, 2, 3, 4, 5]) print(arr1, arr2)
copy
question mark

Choose the correct options of creating a NumPy array.

Select the correct answer

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 5. Capítulo 2

Pregunte a AI

expand
ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

course content

Contenido del Curso

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
NumPy Arrays

Arrays that are provided by NumPy perform much faster than built-in Python lists. These are crucial objects for performing calculations.

To create an array from list, use the .array() method of NumPy, passing list of values as the parameter. For example,

12345678910
# Importing the library import numpy as np # List of values val = [1, 2, 3, 4, 5] # Creating a NumPy array arr1 = np.array(val) arr2 = np.array([1, 2, 3, 4, 5]) print(arr1, arr2)
copy
question mark

Choose the correct options of creating a NumPy array.

Select the correct answer

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 5. Capítulo 2
Lamentamos que algo salió mal. ¿Qué pasó?
some-alt