




























































Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!





























































Juan Gómez Sanchis
Numpy Creando Arrays La función array permite crear un array de numpy a partir de una lista.
Numpy Creando Arrays array permite crear un arrays bidimensionales con varias listas.
Numpy Creando Arrays
Numpy Creando Arrays
scola (^) ècnica uperior (^) nginyeria
Numpy Numpy. Creando Arrays
7DEOH$UUD\FUHDWLRQIXQFWLRQV Function Description array Convert input data (list, tuple, array, or other sequence type) to an ndarray either by inferring a dtype or explicitly specifying a dtype. Copies the input data by default. asarray Convert input to ndarray, but do not copy if the input is already an ndarray arange Like the built-in range but returns an ndarray instead of a list. ones, ones_like Produce an array of all 1’s with the given shape and dtype. ones_like takes another array and produces a ones array of the same shape and dtype. zeros, zeros_like Like ones and ones_like but producing arrays of 0’s instead 82 | Chapter 4: ಗ NumPy Basics: Arrays and Vectorized Computation Function Description empty, empty_like Create new arrays by allocating new memory, but do not populate with any values like ones and zeros eye, identity Create a square N x N identity matrix (1’s on the diagonal and 0’s elsewhere) Data Types for ndarrays
Numpy Operaciones entre arrays y escalares
Numpy Operaciones entre arrays y escalares
Numpy Indexando arrays
Numpy Indexando arrays
Numpy Indexando arrays