Latest blogs

Writing drifts through this section from time to time, offering passing thoughts and loose reflections for whoever feels like pausing here.

View all →
  1. Mastering `numpy.lcm()`: A Comprehensive Guide to Least Common Multiple in Python

    The Least Common Multiple (LCM) is a fundamental concept in mathematics, representing the smallest positive integer that is divisible by tw…

    Read more
  2. Python - Ways to Initialize List with Alphabets

    In Python programming, there are numerous scenarios where you might need to create a list containing alphabetic characters. Whether you're…

    Read more
  3. A Comprehensive Guide to `numpy.var()` in Python: Calculating Variance with NumPy

    In data analysis and statistics, understanding the spread or dispersion of data is crucial. Variance is a key metric that quantifies how mu…

    Read more
  4. Understanding `numpy.nanvar()` in Python

    In the world of data analysis and scientific computing with Python, NumPy is an indispensable library. It provides a wide range of function…

    Read more
  5. Convert String to DateTime and Vice-Versa in Python: A Comprehensive Guide

    When working with data in Python—whether in web applications, data pipelines, or automation scripts—you’ll often encounter dates and times…

    Read more
  6. Python | Tensorflow cosh() method: A Deep Dive

    TensorFlow is a leading open-source library for machine learning and numerical computation, enabling developers to build complex models and…

    Read more
  7. Applying Uppercase to a Column in Pandas DataFrame: A Comprehensive Guide

    Handling text data efficiently is crucial for data cleaning and preprocessing. A common task is converting string columns to uppercase for…

    Read more
  8. Python | TensorFlow logical_not() Method: A Comprehensive Guide

    TensorFlow’s `tf.math.logical_not()` is a fundamental element-wise operation that inverts boolean values in a tensor—turning `True` to `Fal…

    Read more
  9. Python | TensorFlow `logical_xor()` Method

    In the world of machine learning and deep learning, TensorFlow is a widely used library. It provides a plethora of functions to perform var…

    Read more
  10. The 21 Number Game in Python: A Step-by-Step Guide to Building a Strategic Game

    The **21 Number Game** (also called "Twenty-One") is a classic turn-based game where players compete to avoid being forced to "say" the num…

    Read more
  11. Convert a Column to Row Name/Index in Pandas: A Comprehensive Guide

    In data analysis and manipulation with Pandas, the **index** (or row name) plays a pivotal role in labeling, aligning, and accessing data e…

    Read more
  12. Python | Pandas Index.argmax() - A Detailed Guide

    Pandas is a powerful data manipulation library in Python, and its `Index` class is fundamental to working with structured data. The `Index.…

    Read more
  13. Python Output Formatting: A Comprehensive Guide

    In Python programming, how you present data is often as crucial as the data itself. Output formatting is the art of structuring and styling…

    Read more
  14. Python | Pandas Index.drop_duplicates(): A Comprehensive Guide

    In data analysis and manipulation, dealing with duplicate entries is a common challenge. Duplicates can lead to inaccurate aggregations, sk…

    Read more
  15. Python | Pandas Index.duplicated()

    In the world of data analysis with Python, Pandas is a powerful library. One of the common tasks when dealing with data is identifying dupl…

    Read more
  16. Python | Pandas Index.get_loc(): A Comprehensive Guide

    Indexes are the backbone of Pandas data structures, enabling fast label-based lookups, data alignment, and efficient slicing. Among the man…

    Read more
  17. Python | Pandas Index.isin() - A Comprehensive Guide

    Pandas is a powerful data manipulation library in Python, and at the heart of its functionality lies the Index object. The `Index.isin()` m…

    Read more
  18. Understanding Pandas Index.memory_usage(): A Comprehensive Guide

    Memory optimization is a critical aspect of data analysis and manipulation, especially when working with large datasets. Pandas, being one…

    Read more
  19. Python | Pandas Index.min() - A Comprehensive Guide

    The `Index.min()` method is a fundamental operation in pandas that allows developers to efficiently find the minimum value within an index.…

    Read more
  20. Get n-Smallest Values from a Pandas DataFrame: A Comprehensive Guide

    When analyzing data with Pandas, identifying extreme values—like the cheapest products in a sales dataset, the shortest delivery times in a…

    Read more
  21. Mastering Pandas Index.notnull(): A Comprehensive Guide

    Pandas is a cornerstone library in Python's data science ecosystem, and understanding its indexing capabilities is crucial for efficient da…

    Read more
  22. Iterating Over Characters of a String in Python: A Comprehensive Guide

    Strings are fundamental data types in Python used to represent text data. Unlike some other programming languages, Python treats strings as…

    Read more
  23. Print Substrings that are Prefix of the Given String - Python

    Suppose you have the string `"abcab"`. Its **prefixes** are `"a"`, `"ab"`, `"abc"`, `"abca"`, and `"abcab"`. Now, consider all **substrings…

    Read more
  24. Creating a Pandas Series: A Comprehensive Guide

    Pandas is one of the most essential libraries in the Python data science ecosystem, and at the heart of Pandas lies the **Series** object.…

    Read more

Topic collections

Each area simply gathers related pieces in one quiet corner of the site, available whenever you feel like wandering through them.

  1. Python Tutorial

    Start your Python journey

    Learn Python from the ground up — from installation and syntax to real-world scripts and applications.

  2. Python OOP

    Think in Python objects

    Understand classes, objects, inheritance, and clean OOP practices to structure larger Python codebases.

  3. Python Design Patterns

    Reusable patterns for Python code

    Apply classic design patterns in Python to make your code more modular, expressive, and maintainable.

  4. Python Standard Library

    Master the Python standard library

    Discover batteries-included modules for files, networking, concurrency, and more to write less code.

  5. Python Testing & TDD

    Test-driven Python development

    Learn unit testing, pytest, and TDD workflows so your Python code stays reliable as it grows.

  6. Python Data Science

    Python for data science & ML

    Use Python for data analysis, visualization, and machine learning with popular libraries and workflows.