Pandas Apply allows you to apply a function to rows or columns within a dataframe. In this lesson we will be taking a look at 8 different examples of using Apply, so that you can understand the different approaches of using it. If you would rather follow along to a video, we have one on […]
Pandas Value Counts
Let’s take a look at different ways we can count a specific value in a column from a pandas dataframe. Many different data science and machine learning use cases care about element value frequency, so the ability to produce these values for 1 or multiple specific values is important. On top of this, we may […]
Filter Pandas Dataframe with multiple conditions
Let’s take a look at a few different ways to filter and select rows in a pandas dataframe based on multiple conditions. If you want to watch a YouTube video based on this tutorial, it is embedded below. To start we’re going to create a simple dataframe in python: pd.dataframe created 6 functions to filter […]
Pandas Melt
In this lesson, we are going to take a look at the Pandas Melt function. This is a way to transform a dataframe to convert columns to rows. Later in this lesson, we will take a look at some of the benefits of using melt with a groupby and plotting. This lesson is based on […]
Box Cox Transformation Time Series
By utilizing a Box-Cox transformation on your time series data, you can help stabilize the variance, which is an important step in making data stationary. Once you apply the transformation you should also consider differencing which will be covered in this lesson. Pre Box-Cox Transform Post Box-Cox Transform One limitation to using the Box-Cox transformation […]
Pandas Query
By using query, you can simply filter down a dataframe in a more readable format. In this lesson we will go over how to use this with numbers, strings, variables, and more. If you want to watch a YouTube video, the one this lesson is based on is down below. Let’s start by importing in […]
Pandas Shift
To start we’re going to create a simple dataframe in python: Shift 1 Row Shift 2 Row Shift Backwards How to fill values Shift to the right or left Coding Interview Example Question Find transactions where person paid more than last time
Python Pandas Explode
Using explode within Python Pnadas allows you to transform each element of a list to a new row within a dataframe. Python Pandas Explode YouTube Video If you want a video demonstration of how the code works, checkout the video below on our YouTube channel. When working with Python Pandas the first step is to […]
K-Nearest Neighbors
Comprehensive Understanding to K-Nearest Neighbors (KNN) in Supervised Machine Learning. K-Nearest Neighbors (KNN) is a simple, widely used supervised learning algorithm in data science and machine learning It was developed by Evelyn Fix and Joseph Hodges in 1951. Known for it usefulness and versatality, KNN can handle both classification and regression tasks when needed. https://youtu.be/Nz73vXn5afE […]
Tree of Thought Prompting
In the ever-evolving field of artificial intelligence, reasoning and problem-solving capabilities have seen remarkable advancements. One such innovation that stands out is the use of Tree of Thoughts (TOT) in AI reasoning, particularly in the realms of mathematical reasoning and writing TOT excels in guiding the progression of thoughts, making the problem-solving process more comprehensive […]