Until recently, NumPy in Python had simple, but useful financial functions. These NumPy Financial functions are extremely handy for many personal finance questions, like estimating how much interest you have to pay on a loan and how your money grows with a monthly investing plan with a certain interest rate. Recently, the financial functions are […]
NumPy
Image Reconstruction using Singular Value Decomposition (SVD) in Python
In this post, we will explore the use of SVD on Image analysis. We will mainly use SVD on images to get main components/singular vectors capturing the image and use part of them to reconstruct the image. Singular Value Decomposition (SVD) is one of the commonly used dimensionality reduction techniques. SVD/PCA is the mainstay of […]
How To Discretize/Bin a Variable in Python with NumPy and Pandas?
Sometimes you may have a quantitative variable in your data set and you might want to discretize it or bin it or categorize it based on the values of the variable. For example, let us say you have measurements of height and want to discretize it such that it is 0 or 1 depending on […]
9 Basic Linear Algebra Operations with NumPy
Linear algebra is one of the most important mathematical topics that is highly useful to do a good data science. Learning the basics of linear algebra adds a valuable tool set to your data science skill. Python’s NumPy has fast efficient functions for all standard linear albegra/matrix operations. Here we will see 9 important and […]
3 Basic Commands to Manipulate NumPy 2d-arrays
NumPy or Numerical Python is one of the packages in Python for all things computing with numerical values. Learning NumPy makes one’s life much easier to compute with multi-dimensional arrays and matrices. A huge collection of very useful mathematical functions available to operate on these arrays these arrays makes it one of the powerful environment […]