np.argpartition() — A Simple Illustrated Guide

In Python, the numpy.argpartition() function returns the indices that would partition an array along with a given axis based on the specified kth element(s). All elements smaller than the kth element will be moved before it and all larger elements behind it. The element order in the partitions is undefined. If provided with a sequence … Read more

How to Get the Standard Deviation of a Python List?

This article shows you how to calculate the standard deviation of a given list of numerical values in Python. Definition and Problem Formulation The standard deviation is defined as the square root of the variance. In case you’ve attended your last statistics course a few years ago, let’s quickly recap the definition of variance: variance … Read more

np.diff() — A Simple Illustrated Guide

In Python, the numpy.diff() function calculates the n-th discrete difference between adjacent values in an array along with a given axis. For higher-order differences calculation, numpy.diff() runs recursively to the output of the previous execution. Here is the argument table of numpy.diff(): If it sounds great to you, please continue reading, and you will fully … Read more

How to Use Pandas Rolling – A Simple Illustrated Guide

This article will demonstrate how to use a pandas dataframe method called rolling(). What does the pandas.DataFrame.rolling() method do? In short, it performs rolling windows calculations. It is often used when working with time-series data or signal processing. I will shortly dive into a few practical examples to clarify what this means in practice. The … Read more

How to Apply a Function to Series Elements

Problem Formulation and Solution Overview As a Python Coder, situations arise where you will need to apply a function against elements of a Series. To make it more fun, we have the following running scenario: Rivers Clothing does business with six (6) different countries. The Tax Rates for the associated countries have increased by 2%. … Read more

TensorFlow Developer – Income and Opportunity

Related Article: Keras Developer — Income and Opportunity PyTorch Developer — Income and Opportunity Before we learn about the money, let’s get this question out of the way: What Is TensorFlow? Let’s have a look at the definition from the official TensorFlow website: “An end-to-end open source machine learning platform. The core open source library … Read more

Apache Spark Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is Apache Spark? Let’s have a look at the definition from the official Apache Spark website: “Apache Spark™ is a multi-language engine for executing data engineering, data science, and machine learning on single-node machines or clusters. Apache Spark™ is built … Read more

Pandas Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is Pandas? Let’s have a look at the definition from the official Pandas website: “pandas is a fast, powerful, flexible and easy to use open source data analysis and manipulation tool, built on top of the Python programming language.” 💡 … Read more

NumPy Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is NumPy? Let’s have a look at the definition from the official NumPy website: “Nearly every scientist working in Python draws on the power of NumPy. NumPy brings the computational power of languages like C and Fortran to Python, a … Read more

Keras Developer – Income and Opportunity

Before we learn about the money, let’s get this question out of the way: What Is Keras? Let’s have a look at the definition from the official Keras website: “Keras is an API designed for human beings, not machines. Keras follows best practices for reducing cognitive load: it offers consistent & simple APIs, it minimizes … Read more