Numpy Exercise -1
1. Write a NumPy program to create a null vector of size 10 and update sixth value to 11
2. Write a NumPy program to convert an array to a float type
3. Write a NumPy program to create a 3x3 matrix with values ranging from 2 to 10
4. Write a NumPy program to convert a list of numeric value into a one-dimensional NumPy
array 2.
5. Write a NumPy program to convert an array to a float type
6. Write a NumPy program to create an empty and a full array
7. Write a NumPy program to convert a list and tuple into arrays
8. Write a NumPy program to find the real and imaginary parts of an array of complex
numbers.
9. Create two arrays of six elements. Write a NumPy program to count the number of
instances of a value occurring in one array on the condition of another array.
10. Create a 2-dimensional array of size 2 x 3, composed of 4-byte integer elements. Write a
NumPy program to find the number of occurrences of a sequence in the said array.
11. Write a NumPy program to merge three given NumPy arrays of same shape.
12. Write a NumPy program to combine last element with first element of two given ndarray
with different shapes.
13. Write a NumPy program to convert an array to a float type
14. Write a NumPy program to add a border (filled with 0's) around an existing array
15. Write a NumPy program to convert a list and tuple into arrays
16. Write a NumPy program to append values to the end of an array
17. Write a NumPy program to convert an array to a float type
18. Write a NumPy program to create an empty and a full array
19. Write a NumPy program to convert a list and tuple into arrays
20. Write a NumPy program to find the real and imaginary parts of an array of complex
numbers.
21. Write a NumPy program to convert a Python dictionary to a NumPy ndarray.
22. Write a NumPy program to search the index of a given array in another given array.
23. Write a NumPy program to convert a list and tuple into arrays.
24. .Write a NumPy program to convert the values of Centigrade degrees into Fahrenheit
degrees and vice versa. Values have to be stored into a NumPy array.
25. Write a NumPy program to find the real and imaginary parts of an array of complex
numbers.
26. Write a NumPy program to convert a NumPy array into a csv file
27. Write a NumPy program to perform the basic arithmetic operations
28. Write a NumPy program to transpose an array
29. Use NumPy , Create an array with 5 dimensions and verify that it has 5 dimensions
30. Using NumPy, Sort a boolean array
31. Using various functions in numpy library, mathematically calculate the values for a
normal distribution and create Histograms to plot the probability distribution curve.