Python - Basic Articles
Given a list of lists. The task is to extract a random element from it. Examples: Input : test_list = [[4, 5, 5], [2, 7,… Read More
In this article, we are going to write a short script to generate barcodes using Python. We’ll be using the python-barcode module which is a… Read More
Sometimes we need to find the combination of elements of two or more arrays. Numpy has a function to compute the combination of 2 or… Read More
Python offers multiple libraries to ease our work. Here we will learn how to take a screenshot using Python. Python provides a module called pyscreenshot… Read More
Many times there is a need to copy one array to another. Numpy provides the facility to copy array using different methods. In this Copy… Read More
A special number that can be calculated from a square matrix is known as the Determinant of a square matrix. The Numpy provides us the… Read More
Errorbar is the plotted chart that refers to the errors contained in the data frame, which shows the confidence & precision in a set of… Read More
If you have used Python even for a few days now, you probably know about unpacking tuples. Well for starter, you can unpack tuples or… Read More
Pygame is a Python library that can be used specifically to design and build games. Pygame supports only 2d games that are built using different… Read More
In this article we will learn about checking a specified row is in NumPy array or not. If the given list is present in a… Read More
Let us see how to remove special characters like #, @, &, etc. from column names in the pandas data frame.  Here we will use… Read More
 Image Segmentation: In computer vision, image segmentation is the process of partitioning an image into multiple segments. The goal of segmenting an image is to… Read More
The user-defined names that are given to Functions or variables are known as Identifiers. It helps in differentiating one entity from another and also serves… Read More
The One-dimensional array contains elements only in one dimension. In other words, the shape of the NumPy array should contain only one value in the… Read More
Prerequisites: Python NumPy, Python OpenCV Every image is represented by 3 colors that are Red, Green and Blue. Let us see how to find the… Read More
Given a string containing numbers, replace each number by K. Input : test_str = ‘G4G is 4 all No. 1 Geeks’, K = ‘#’ Output :… Read More
Given a String, perform uppercase of the later part of the string. Input : test_str = 'geeksforgeek'  Output : geeksfORGEEK  Explanation : Latter half of… Read More
NumPy stands for Numerical Python. It is a Python library used for working with an array. In Python, we use the list for the array… Read More
Let’s see how to Convert Text File to CSV using Python Pandas. Python will read data from a text file and will create a dataframe… Read More
In this post, we will see how to find the memory size of a NumPy array. So for finding the memory size of a NumPy… Read More