Ninad

Ninad

A Python and PHP developer turned writer out of passion. Over the last 6+ years, he has written for brands including DigitalOcean, DreamHost, Hostinger, and many others. When not working, you'll find him tinkering with open-source projects, vibe coding, or on a mountain trail, completely disconnected from tech.
Python Nested Sets: Create a Set of Groups

Python Nested Sets: Create a Set of Groups

Grouping unordered collections in Python means choosing a representation that lets one collection hold the groups. A frozenset represents each group as an immutable set, and an outer set can store those groups. I’ll show how to build and query…

Statsmodels Library Structure and Imports

Statsmodels Library Structure and Imports

Finding an import in Statsmodels starts with the model or helper you want to use. The package groups models, tests and tools into subpackages by subject, while an API module collects selected objects for convenient use. I’ll show how to…

Text Mining Python: Analyze Documents

Text Mining Python: Analyze Documents

To analyze documents in Python, convert their text into structured features software can inspect. Text mining creates features such as token counts and TF-IDF weights, with TF-IDF giving less weight to terms found in many documents. I’ll show how to…

SciPy Find Peaks: Detect Signal Maxima

SciPy Find Peaks: Detect Signal Maxima

A sampled signal can have small fluctuations alongside the peaks you want to keep. SciPy’s find_peaks locates local maxima in a one-dimensional signal and can filter them with conditions such as height or distance. I’ll show how to use find_peaks…

How to Use HTMLParser in Python

How to Use HTMLParser in Python

A Python script that reads page titles or links needs a way to pick those values out of HTML. HTMLParser reads supplied HTML and calls functions you define when it reaches tags and text. In this piece, I’ll walk through…

How to Install SciPy in Python

How to Install SciPy in Python

In a notebook, SciPy must be installed for the Python kernel that runs its cells. SciPy is a Python library of numerical algorithms built on NumPy arrays. I’ll show how to install SciPy into a notebook kernel and explain when…