Exploring the depths of the ocean reveals a fascinating world teeming with diverse marine life and remarkable human achievements and adventures.In this chart, we look at some of the usual depths inhabited by various marine creatures, from the shallow waters to the abyssal plains and down to the deepest seabed on Earth.Additionally, I highlight some […]
Tag: STEM
Creating an Analog Clock in Excel
Welcome back! In this post, I demonstrate creating an analog clock as a chart in Excel that’s completely data-driven, and even real-time. The clock, created as a scatter plot in Excel is dynamic, scalable, accurate, and highly customizable. You will discover the way to generate such a chart that updates the clock visual according to […]
Circle and Star charts in Python
In this post, I share the code on how to create a circle and a star chart using the very flexible XY scatter chart type and the very versatile matplotlib Python library. The number of lines of code needed are very small but the key here is to understand the parametric equations needed to generate […]
Path Navigation Gamification
In an earlier post, I shared a couple of fundamental search and navigation algorithms. You can read it here. In this blog post, I’ll share a fun implementation, a gamification using one of the algorithms. The premise is simple: We have a seeker (depicted by a bandit) whose objective is to find a target (a […]
Search Algorithms and Path Navigation
In this post, I introduce two fundamental search algorithms used to traverse or search through graphs or tree data structures: breadth-first search (BFS), and depth-first search (DFS). I also present an overview of a path/search navigation scripts for both algorithms and compare their metrics. This post builds on my earlier post about stack and queue […]
Stack and Queue Real-time Demo
In this post, I present the concepts of stack and queue which are fundamental in computer science. Furthermore, I demonstrate them with an interactive application below to clearly and visually present what goes on as new elements are added or removed from each and their differences in behavior. The implementation of a stack and queue […]
Pangram Verifier (Python)
Objective Write a script that takes a user-input and checks if it’s a pangram. A pangram is a sentence/phrase/string that contains all letters of the alphabet (in this case, English) at least once. However, technically, a pangram doesn’t necessarily have to be a grammatically correct sentence. The goal of a pangram is to include every […]
Creating a Pangram Phrase with Python
Introduction A pangram is a sentence that contains every letter of the alphabet at least once. The most famous example in English is “The quick brown fox jumps over the lazy dog.” Pangrams are not only fun to create but also useful in various applications, such as testing fonts and keyboards. Technically, a pangram doesn’t […]
Classifying Emails as Spam or Ham Using Naive Bayes
In this blog post, we’ll explore how to use the Naive Bayes algorithm to classify emails as either spam or ham (non-spam). We’ll walk through a Python implementation using the MultinomialNB classifier from the scikit-learn library. This method is particularly effective for text classification problems. Step-by-Step Implementation Importing Libraries: We start by importing the necessary libraries: Loading the Dataset: […]
Identifying double-bookings, scheduling conflicts
You’ve created a week’s schedule for your restaurant staff by day and shift (AM or PM). Next, you want a way fool-proof method to check if anyone is double-booked on any given day, and if so, who. Surely you can manually double-check and triple-check to make sure the schedule is exactly as planned but there […]