HSHarpreet Singh Kapulainsingh-technical-blog.hashnode.dev·1d ago · 8 min readThe Pandas Bug That Wasn't Really a Bug (And Why Pandas Rebuilt Its Memory Model to Kill It)For years, pandas code like this had a reputation for silently not doing what it looked like it was doing: df[df["score"] > 90]["grade"] = "A" Sometimes it worked. Sometimes it didn't — and pandas w00
HSHarpreet Singh Kapulainsingh-technical-blog.hashnode.dev·1d ago · 6 min readWhy One-Hot Encoding Turned 25MB Into 1.4GBHere's a real number, produced by running the code below, not borrowed from anywhere: a single categorical column, 500,000 rows, 3,000 unique values, sitting at a modest 25.6MB in memory. One-hot enco00
SSSRITESH SURANJANinsritesh-tech-journal.hashnode.dev·1d ago · 13 min readDay 18 – While Loops in PythonWelcome to Day 18 of 100 Days of Python! 🐍 Today, we are learning about while loops — one of the fundamental looping mechanisms in Python. In the previous lesson, we learned about for loops, which ar00
NINikhil Ikharinnik-hil.hashnode.dev·2d ago · 1 min readAgents Zero to Hero #10: Teaching an AI Agent to Load Skills on DemandAgents Zero to Hero #10: Teaching an AI Agent to Load Skills on Demand AI agents can use tools, remember information, and manage long conversations. But there is another problem. What happens when the00
HSHarpreet Singh Kapulainsingh-technical-blog.hashnode.dev·2d ago · 6 min readWhat groupby() Actually Does in Memory (You Already Learned This Trick)Databases have a classic trick for finding matching rows fast: build a hash table once, then look things up in it instead of scanning everything from scratch every time you need an answer. It's one of00
SSSRITESH SURANJANinsritesh-tech-journal.hashnode.dev·2d ago · 13 min readDay 17 – For Loops in PythonWelcome to Day 17 of 100 Days of Python! Today, we are learning one of the most important concepts in programming: loops. A loop allows us to execute a block of code repeatedly instead of writing the 00
DSDipen Shahintechecho.hashnode.dev·3d ago · 5 min readBuilding a Multi-Agent Tournament Engine: Simulating Emergent Cooperation in PythonIn Episode 1: Building the Laboratory, we constructed a deterministic, isolated foundation for repeated two-agent Prisoner's Dilemma interactions. We verified that when interactions repeat, reciprocal00
SSSRITESH SURANJANinsritesh-tech-journal.hashnode.dev·4d ago · 12 min readDay 16 – Match-Case Statements in Python Welcome to Day 16 of 100 Days of Python! Today, we are learning another way to implement decision-making logic in Python: the match-case statement. If you have previously worked with languages such as00
SSSRITESH SURANJANinsritesh-tech-journal.hashnode.dev·4d ago · 14 min readDay 14 – If-Else Conditionals in PythonWelcome to Day 14 of 100 Days of Python! Today, we are learning one of the most important concepts in programming: conditional statements. Programs often need to make decisions based on certain condit00
SSSRITESH SURANJANinsritesh-tech-journal.hashnode.dev·4d ago · 11 min readDay 15 – Exercise 2: Good Morning Sir in PythonWelcome to Day 15 of 100 Days of Python! Today, we are working on Exercise 2: Good Morning Sir. This exercise combines two important concepts we have already started learning: Python modules Conditi00