Basics of Exploratory Data Analysis

Exploratory data analysis, or EDA, helps us get a foundational understanding of our dataset. Through exploring our data, we get an understanding of the data and its patterns so we can build efficient predictive models. This process takes a fair amount of time because we implement several data preprocessing tasks.  For this tutorial, we’ll needContinue reading “Basics of Exploratory Data Analysis”

Nested Lists in Python

Nested lists are Python representations of two dimensional arrays. They are used to represent lists of lists. For example, a list of grocery lists for the month or matrices we can multiply. In this post we’re going to go over how to use Python to create and manipulate nested lists. We’ll go over: Python NestedContinue reading “Nested Lists in Python”

A Complete Guide to Python String Manipulation

I am pretty sure I’ve had to look up how to work with strings over 100,000 times now. Not just in Python, but for programming in general. Strings are not treated the same in each programming language though. For example, you have to use pointers to mess with strings in C. However, Python provides aContinue reading “A Complete Guide to Python String Manipulation”

Dijkstra’s Algorithm in 5 Steps with Python

Dijkstra’s Algorithm is one of the most well-known graph algorithms. It is also one of the hardest to spell and pronounce. It’s pronounced “dike-struh” algorithm. Dijkstra’s algorithm is a shortest path algorithm with many variations. In this post we’ll be going over two Python implementations of Dijkstra’s algorithm. ‘ The first is the naive implementation,Continue reading “Dijkstra’s Algorithm in 5 Steps with Python”

Private Variables in Python

There are three variable scopes you need to know. There are global variables, public variables, and private variables. Global variables can be accessed from all functions and modules in a program. Ideally they are only declared once in a whole program. Public variables belong to certain classes, but are visible to other classes, functions, andContinue reading “Private Variables in Python”

295. Find Median from Data Stream LeetCode Solution

I don’t usually do LeetCode problems, but this one comes up as a real life use case for me so I wanted to share. This problem is about data streaming and handling data in real time. It’s similar to what we call ETL or ELT in industry. LeetCode 295. Find Median from Data Stream ProblemContinue reading “295. Find Median from Data Stream LeetCode Solution”

Python Counting Sort Guide and Implementation

Counting sort is a niche sorting algorithm for integers only. In this post we cover how to build a counting sort Python implementation.

Python Speech Recognition with SpeechRecognition

The Python SpeechRecognition library helps you easily do speech recognition with many different backends.

Python Anagrams Technical Interview Question Solutions

Anagrams are strings that are made up of the same set of letters. There are many ways to use anagrams in technical interview questions. The one that I got in my most recent round of technical interviews was along the lines of “remove all words in a list that are anagrams of words that haveContinue reading “Python Anagrams Technical Interview Question Solutions”