0% found this document useful (0 votes)
6 views2 pages

Essential NumPy Functions Explained

The document lists common NumPy functions along with their uses, such as creating arrays, calculating statistical measures, and performing mathematical operations. Functions like np.array(), np.zeros(), and np.ones() are used for array creation, while np.mean(), np.median(), and np.std() are for statistical calculations. Additionally, it includes functions for array manipulation and mathematical transformations like np.dot(), np.transpose(), and np.sin().

Uploaded by

akotobless202
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

Essential NumPy Functions Explained

The document lists common NumPy functions along with their uses, such as creating arrays, calculating statistical measures, and performing mathematical operations. Functions like np.array(), np.zeros(), and np.ones() are used for array creation, while np.mean(), np.median(), and np.std() are for statistical calculations. Additionally, it includes functions for array manipulation and mathematical transformations like np.dot(), np.transpose(), and np.sin().

Uploaded by

akotobless202
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Common NumPy Functions and Their Uses

[Link]()

Creates a NumPy array from a list or tuple.

[Link](shape)

Creates an array filled with zeros of given shape.

[Link](shape)

Creates an array filled with ones of given shape.

[Link](start, stop, step)

Returns an array with evenly spaced values.

[Link](start, stop, num)

Returns 'num' evenly spaced samples between start and stop.

[Link](array, new_shape)

Reshapes an existing array to a new shape.

[Link](array)

Calculates the mean (average) of array elements.

[Link](array)

Computes the median of array elements.

[Link](array)

Returns the standard deviation of the array elements.

[Link](array)

Calculates the sum of all array elements.

[Link](array)

Finds the maximum value in the array.

[Link](array)

Finds the minimum value in the array.


[Link](a, b)

Computes the dot product of two arrays.

[Link](array)

Transposes the rows and columns of an array.

[Link](array)

Applies sine function element-wise to array.

[Link](array)

Applies cosine function element-wise to array.

[Link](array)

Calculates the exponential (e^x) of all elements.

[Link](array)

Computes the natural logarithm of each element.

[Link](array)

Computes the square root of each element.

[Link](d0, d1, ..., dn)

Generates random numbers in a given shape from a uniform distribution.

You might also like