Category: Tutorials

Python Basics, Tutorials

Deleting a Cell in Jupyter Notebook

Introduction Jupyter Notebook is an interactive computational environment that allows users to create and share documents that contain live code, equations, visualizations, and narrative text. One of the most common tasks when working with Jupyter Notebook is deleting a cell. In this comprehensive guide, we will cover the different ways to delete a cell in […]

Python Basics, Tutorials

Working with Grid Data in Python

Introduction Python is a versatile programming language that can be used for a wide range of applications, including working with grid data. Grid data refers to data that is organized in a two-dimensional or three-dimensional grid-like structure, such as an image or a spreadsheet. In this beginner’s guide, we will explore the basics of working […]

Python Basics, Tutorials

A Guide to Jupyter Notebook Markdown

Introduction Jupyter Notebook is a powerful tool for data analysis and scientific computing that allows you to create and share documents that contain live code, equations, visualizations, and narrative text. One of the key features of Jupyter Notebook is its support for Markdown, a lightweight markup language that enables you to write formatted text using […]

Data Science, Tutorials

Kalman Filter OpenCV Python Example

Introduction If you’re working with computer vision, you know that tracking objects in a video stream can be a challenging task. Kalman Filters can be an effective solution to this problem, and when combined with OpenCV and Python, they become even more powerful. In this blog post, we will walk through a Kalman Filter OpenCV […]

Python Basics, Tutorials

Python __new__: Understanding the Constructor Method

Introduction In Python, the `__new__` method is a special method that gets called when an instance of a class is created. It is known as the constructor method in Python and is responsible for creating and returning a new instance of the class. The `__new__` method is called before the `__init__` method, which means it […]

Python Basics, Tutorials

Python __contains__: A Comprehensive Guide

Introduction Python’s built-in function `__contains__()` is a powerful tool that allows us to check if a specific value exists in a given sequence. This function can be used with several data types, including strings, lists, tuples, and sets. When we use the `__contains__()` function, Python checks whether the specified value is present in the sequence […]

Python Basics, Tutorials

How to use Python List Extend

Introduction Lists in Python are one of the most commonly used data structures. They allow you to store and manipulate a collection of elements. One useful method that you can use with lists in Python is `extend()`. The `extend()` method allows you to add multiple elements to the end of a list. Let’s explore this […]

Python Basics, Tutorials

How to get Yesterday’s Date in Python

Introduction Have you ever needed to get yesterday’s date in Python? If so, you might have found yourself wondering how to accomplish this. In this blog post, we will discuss how to get yesterday’s date using Python. Knowing how to get yesterday’s date can be important in many situations. For example, if you are working […]

Python Basics, Tutorials

Jupyter Notebook Timeit: A Tutorial on Profiling Code

Introduction In Python programming, it’s important to optimize code for efficient execution. One way to do this is by profiling the code to identify and eliminate potential bottlenecks. Jupyter Notebook provides a tool called “timeit” that allows you to measure the execution time of small code snippets. This can be useful in identifying which parts […]

Python Basics, Tutorials

BFS: Breadth First Search Implementation in Python

Introduction Breadth First Search (BFS) is a graph traversal algorithm that traverses the graph in a breadth-ward motion. In other words, it explores all the vertices at the same level before moving on to the vertices at the next level. BFS is often used to find the shortest path between two nodes in an unweighted […]