1/40
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
array()
creates a NumPy array from a list or iterable
arange()
returns evenly spaced values within a given range
linspace()
returns evenly spaced numbers over a specified interval
zeros()
creates an array filled with zeros
ones()
creates an array filled with ones
empty()
creates an array without initializing entries (fast, random values inside)
full()
creates an array filled with a given value
eye()
creates an identity matrix
reshape()
changes the shape of an array without changing its data
ravel()
flattens an array into 1D
flatten()
returns a copy of the array flattened into 1D
transpose()
transposes the dimensions of an array
concatenate()
joins arrays along an existing axis
stack()
stacks arrays along a new axis
split()
splits an array into multiple sub-arrays
copy()
returns a copy of an array
dtype()
returns the data type of an array
sum()
returns the sum of array elements
mean()
returns the average of array elements
median()
returns the median of array elements
std()
returns the standard deviation of array elements
var()
returns the variance of array elements
min()
returns the minimum value in an array
max()
returns the maximum value in an array
argmin()
returns the index of the minimum value
argmax()
returns the index of the maximum value
dot()
computes the dot product of two arrays
matmul()
matrix multiplication of two arrays
cross()
returns the cross product of two vectors
inv()
returns the inverse of a matrix
det()
returns the determinant of a matrix
eig()
returns the eigenvalues and eigenvectors of a matrix
where()
returns indices where condition is true
nonzero()
returns indices of non-zero elements
unique()
returns unique elements of an array
sort()
sorts an array
argsort()
returns indices that would sort an array
random.rand()
generates an array of random numbers (uniform distribution)
random.randn()
generates random numbers (normal distribution)
random.randint()
generates random integers in a range
random.choice()
randomly selects elements from an arrayy