Code Monkey home page Code Monkey logo

numpy_study_materials's Introduction

Numpy Interview Questions

1. What is Numpy?
2. Why NumPy is used in Python?
3. What does NumPy mean in Python?
4. Where is NumPy used?
5. How to Install Numpy in Windows?
6. How to import numpy in python?
7. how to create 1D Array ?
8. How to create 2D Array ?
9. How to create 3D Array or ND Array ?
10.How to use shape for 1D Array ?
11.How to use shape for 2D Array ?
12. How to use shape for 3d or Nd Array ?
13. How to identified datatype for numpy array?
14. Print 5 zeros with numpy ?
15. print zeros with 2 rows and 3 columns ?
16. use of eye() diagonal values ?
17. use of diag() square matrix ?
18. Print Range Between 1 To 15 and show 4 integers random numbers
19. Print Range Between 1 To 100 and show 4 integers random numbers
20. Print Range Between random number 2 row and 3 cols integers random numbers
21. What Is The Difference Between Numpy And Scipy?
22. What Is The Preferred Way To Check For An Empty (zero Element) Array?
23. List the advantages NumPy Arrays have over (nested) Python lists?
24. How do you create a 3D array?
25. How can you identify the datatype of a given NumPy array?
26. Why NumPy is faster than list?

Questions on NumPy Array

1. How to create an empty and a full NumPy array?
2. Create a Numpy array filled with all zeros
3. Create a Numpy array filled with all ones
4. Check whether a Numpy array contains a specified row
5. How to Remove rows in Numpy array that contains non-numeric values?
6. Remove single-dimensional entries from the shape of an array
7. Find the number of occurrences of a sequence in a NumPy array
8. Find the most frequent value in a NumPy array
9. Combining a one and a two-dimensional NumPy Array
10. How to build an array of all combinations of two NumPy arrays?
11. How to add a border around a NumPy array?
12. How to compare two NumPy arrays?
13. How to check whether specified values are present in NumPy array?
14. How to get all 2D diagonals of a 3D NumPy array?
15. Flatten a Matrix in Python using NumPy
16. Flatten a 2d numpy array into 1d array
17. Move axes of an array to new positions
18. Interchange two axes of an array
19. NumPy – Fibonacci Series using Binet Formula
20. Counts the number of non-zero values in the array
21. Count the number of elements along a given axis
22. Trim the leading and/or trailing zeros from a 1-D array
23. Change data type of given numpy array
24. Reverse a numpy array
25. How to make a NumPy array read-only?

Questions on NumPy Matrix

1. Get the maximum value from given matrix
2. Get the minimum value from given matrix
3. Find the number of rows and columns of a given matrix using NumPy
4. Select the elements from a given matrix
5. Find the sum of values in a matrix
6. Calculate the sum of the diagonal elements of a NumPy array
7. Adding and Subtracting Matrices in Python
8. Ways to add row/columns in numpy array
9. Matrix Multiplication in NumPy
10. Get the eigen values of a matrix
11. How to Calculate the determinant of a matrix using NumPy?
12. How to inverse a matrix using NumPy
13. How to count the frequency of unique values in NumPy array?
14. Multiply matrices of complex numbers using NumPy in Python
15. Compute the outer product of two given vectors using NumPy in Python
16. Calculate inner, outer, and cross products of matrices and vectors using NumPy
17. Compute the covariance matrix of two given NumPy arrays
18. Convert covariance matrix to correlation matrix using Python
19. Compute the Kronecker product of two mulitdimension NumPy arrays
20. Convert the matrix into a list

Questions on NumPy Indexing

1. Replace NumPy array elements that doesn’t satisfy the given condition
2. Return the indices of elements where the given condition is satisfied
3. Replace NaN values with average of columns
4. Replace negative value with zero in numpy array
5. How to get values of an NumPy array at certain index positions?
6. Find indices of elements equal to zero in a NumPy array
7. How to Remove columns in Numpy array that contains non-numeric values?
8. How to access different rows of a multidimensional NumPy array?
9. Get row numbers of NumPy array having element larger than X
10. Get filled the diagonals of NumPy array
11. Check elements present in the NumPy array
12. Combined array index by index

Questions on NumPy Linear Algebra

1. Find a matrix or vector norm using NumPy
2. Calculate the QR decomposition of a given matrix using NumPy
3. Compute the condition number of a given matrix using NumPy
4. Compute the eigenvalues and right eigenvectors of a given square array using NumPy?
5. Calculate the Euclidean distance using NumPy

Questions on NumPy Random

1. Create a Numpy array with random values
2. How to choose elements from the list with different probability using NumPy?
3. How to get weighted random choice in Python?
4. Generate Random Numbers From The Uniform Distribution using NumPy
5. Get Random Elements form geometric distribution
6. Get Random elements from Laplace distribution
7. Return a Matrix of random values from a uniform distribution
8. Return a Matrix of random values from a Gaussian distribution

Questions on NumPy Sorting and Searching

1. How to get the indices of the sorted array using NumPy in Python?
2. Finding the k smallest values of a NumPy array
3. How to get the n-largest values of an array using NumPy?
4. Sort the values in a matrix
5. Filter out integers from float numpy array
6. Find the indices into a sorted array

Questions on NumPy Mathematics

1. How to get element-wise true division of an array using Numpy?
2. How to calculate the element-wise absolute value of NumPy array?
3. Compute the negative of the NumPy array
4. Multiply 2d numpy array corresponding to 1d array
5. Computes the inner product of two arrays
6. Compute the nth percentile of the NumPy array
7. Calculate the n-th order discrete difference along the given axis
8. Calculate the sum of all columns in a 2D NumPy array
9. Calculate average values of two given NumPy arrays
10. How to compute numerical negative value for all elements in a given NumPy array?
11. How to get the floor, ceiling and truncated values of the elements of a numpy array?
12. How to round elements of the NumPy array to the nearest integer?
13. Find the round off the values of the given matrix
14. Determine the positive square-root of an array

Questions on NumPy Statistics

1. Compute the median of the flattened NumPy array
2. Find Mean of a List of Numpy Array
3. Calculate the mean of array ignoring the NaN value
4. Get the mean value from given matrix
5. Compute the variance of the NumPy array
6. Compute the standard deviation of the NumPy array
7. Compute pearson product-moment correlation coefficients of two given NumPy arrays
8. Calculate the mean across dimension in a 2D NumPy array
9. Calculate the average, variance and standard deviation in Python using NumPy
10. Describe a NumPy Array in Python

Questions on NumPy Strings

1. Repeat all the elements of a NumPy array of strings
2. How to split the element of a given NumPy array with spaces?
3. How to insert a space between characters of all the elements of a given NumPy array?
4. Find the length of each string element in the Numpy array
5. Swap the case of an array of string
6. Change the case to uppercase of elements of an array
7. Change the case to lowercase of elements of an array
8. Join String by a separator
9. Check if two same shaped string arrayss one by one
10. Count the number of substrings in an array
11. Find the lowest index of the substring in an array
12. Get the boolean array when values end with a particular character

More Questions on NumPy

1. Different ways to convert a Python dictionary to a NumPy array
2. How to convert a list and tuple into NumPy arrays?
3. Ways to convert array of strings to array of floats
4. Convert a NumPy array into a csv file
5. How to Convert an image to NumPy array and save it to CSV file using Python?
6. How to save a NumPy array to a text file?
7. Load data from a text file
8. Plot line graph from NumPy array
9. Create Histogram using NumPy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.