0% found this document useful (0 votes)
13 views

Data Analytics Using the Python Library (1)

The document outlines various operations and functionalities of the NumPy library for data analytics in Python. It covers creating and manipulating arrays, including 1D and 2D arrays, performing statistical calculations, and utilizing functions for array generation and modification. Key operations include accessing elements, creating identity matrices, and performing concatenation and deletion of array elements.

Uploaded by

ykashish456
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views

Data Analytics Using the Python Library (1)

The document outlines various operations and functionalities of the NumPy library for data analytics in Python. It covers creating and manipulating arrays, including 1D and 2D arrays, performing statistical calculations, and utilizing functions for array generation and modification. Key operations include accessing elements, creating identity matrices, and performing concatenation and deletion of array elements.

Uploaded by

ykashish456
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Data Analytics Using the Python Library,

NumPy

Let’s see how you can perform numerical


analysis and data manipulation using the
NumPy library.

1. Create a NumPy array.

2. Access and manipulate elements in the


array:

3. Create a 2-dimensional array and check


the shape of the array.
4. Access elements from the 2D array using
index positions.

5. Create an array of type string

6. Using the arange() and linspace() function


to evenly space values in a specified interval
7.Create an array of random values between
0 and 1 in a given shape

8. Create an array of constant values in a


given shape

9. Repeat each element of an array by a


specified number of times
using repeat() and tile() functions.
10. Create an identity matrix
using eye() and identity() function.

11. Create a 5x5 2D array for random


numbers between 0 and 1.

12. Sum an array along the column.


13. Sum an array along the row.

14. Calculate the mean, median, standard


deviation, and variance.

15. Sort an array along the row using


the sort() function.
16. Append elements to an array using the
append() function.

17. Delete multiple elements in an array.

18. Concatenate elements from 2 arrays.

You might also like