Check for NaN Values in Python

Overview Problem: How to check if a given value is NaN? Here’s a quick look at the solutions to follow: So, what is a NaN value? NaN is a constant value that indicates that the given value is Not a Number. It’s a floating-point value, hence cannot be converted to any other type other than … Read more

How to Apply a Function to List Elements

Problem Formulation and Solution Overview As a Pythonista, coding issues may occur where you need to apply a function against array/matrix elements. To make it more fun, we have the following running scenario: The organization Happy Mortgages has six (6) different Mortgage Terms available: 30-Year, 20-Year, 15-Year, 10-Year, 7-Year, and 5-Year terms. The US Federal … 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

How to Apply a Function to Column Elements

Problem Formulation and Solution Overview As a Python Coder, situations arise where you will need to apply a function against elements of a DataFrame Column. To make it more fun, we have the following running scenario: You have a DataFrame containing user information (including the column Recurring). This column is the Monthly Fee for a … 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

How Do I Fill Column With One Value In Pandas?

Summary: The following approaches will help you to fill a column with one value in Pandas: df[‘col_name’] = “value” df.insert(index, ‘col_name’, ‘value’) df.loc[:, ‘col_name’] = ‘value’ df = df.assign(‘col_name’=’value’) Introduction Problem Formulation: How do I fill a column with one value in Pandas? Example: Let’s consider that we have a DataFrame as shown below: Output: … 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