Skip to content

Python · Machine Learning

From the kitchen

Quality, author-led articles on Python & machine learning. Learn how to eat through topics, calmly, deeply, and without the noise.

145 articles Community authors Always free

More from the kitchen

Fresh articles, served often.

programming languages

Creating Your Own Domain Specific Language (DSL) in Python

Sometimes, a standard CLI tool isn’t enough, but a full-blown programming language is overkill. This is where a Domain Specific Language (DSL) shines. A DSL is a mini-language desi…

Abdur-Rahmaan Janhangeer

Chef

devops

Python Virtual Environments on Windows: A Complete Guide

If you’re starting multiple Python projects, you will quickly run into a problem: one project needs Version 1.0 of a library, while another needs Version 2.0. If you install everything globally, yo…

Abdur-Rahmaan Janhangeer

Chef

software engineering

Mastering Python's Regex: Part 1 - The Basics

Regular Expressions, or Regex, are often seen as a “dark art” by beginning programmers. At first glance, they look like a jumble of bizarre symbols and incomprehensible strings. Ho…

Abdur-Rahmaan Janhangeer

Chef

data science

Efficient Column Removal in Pandas: Dropping by Index or Range

When cleaning data in Pandas, we often need to remove columns. While dropping by name (df.drop(columns=['Name'])) is common, there are many scenarios where it’s more efficient to drop …

Abdur-Rahmaan Janhangeer

Chef

data science

How to Prepare Excel Files for Data Analysis with Pandas

Excel is the world’s most popular data tool, but for advanced analysis and machine learning, we often need to move our data into Python. The Pandas library makes this incredibly ea…

Abdur-Rahmaan Janhangeer

Chef

data science

Multi-Dimensional Euclidean Distance: Calculating Distance for N Features

In data science and machine learning, measuring the similarity between two points is a foundational task. One of the most common ways to do this is by calculating the Euclidean Distance…

Abdur-Rahmaan Janhangeer

Chef

web development

Building a Web Mail Client with Flask and Raspberry Pi

Have you ever wondered how web-based email clients like Gmail or Outlook actually work? At their core, they are web applications that take user input and send it to an email server. In this tutoria…

Abdur-Rahmaan Janhangeer

Chef

computer vision

The Ultimate Guide to Installing OpenCV on Raspberry Pi 3

OpenCV (Open Source Computer Vision Library) is the industry standard for image processing and computer vision. However, installing it on a Raspberry Pi 3 can be notoriously difficult. While modern…

Abdur-Rahmaan Janhangeer

Chef

hardware

Remote Access: How to Establish an SSH Connection to Your Raspberry Pi

One of the greatest features of the Raspberry Pi is that you don’t actually need a dedicated monitor or keyboard to use it. Through SSH (Secure Shell), you can control your Pi’s te…

Abdur-Rahmaan Janhangeer

Chef

gui development

Mastering Tkinter Text Tags: Fixing Overlapping Syntax Highlighting

If you’ve ever tried to build a code editor or a text processor in Tkinter, you’ve likely used the Text widget tags. Tags are incredibly powerful—they allow you to change the color…

Tim thuma

Coder

hardware

Setting Up Your Raspberry Pi 3: A Step-by-Step OS Installation Guide

The Raspberry Pi is a remarkably powerful credit-card-sized computer, but when you first take it out of the box, it’s a “blank slate.” It has no operating system and no built-in storage. In this fi…

Abdur-Rahmaan Janhangeer

Chef

game development

Coordinate Systems: Converting Screen Space to Map Space

When building a tile-based game, you constantly need to translate between two different worlds: 1. Screen Space: The actual pixel coordinates on your monitor (e.g., the mouse is a…

Abdur-Rahmaan Janhangeer

Chef