Hafeezul Kareem has Published 344 Articles

self in Python class

Hafeezul Kareem

Hafeezul Kareem

Updated on 11-Jul-2020 06:47:23

1K+ Views

In this tutorial, we are going to learn about the self in Python. You must be familiar with it if you are working with Python. We will see some interesting things about.Note − self is not a keyword in Python.Let's start with the most common usage of self in Python.We'll ... Read More

Analysing Mobile Data Speeds from TRAI with Pandas in Python

Hafeezul Kareem

Hafeezul Kareem

Updated on 08-Jul-2020 07:29:29

84 Views

In this tutorial, we are going to analyze the mobile data speeds using the pandas package. Download the mobile speeds from the TRAI official website. Steps to download the file.Algorithm1. Go to the [TRAI](https://myspeed.trai.gov.in/ ) website. 2. Scroll down to the end of the page. 3. You will find mobile ... Read More

Python Grouped Flattening of list

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 09:04:25

98 Views

In this tutorial, we are going to write a program that flattens a list that contains sub-lists. Given number flatten the sublists until the given number index as parts. Let's see an example to understand it clearly.Inputlists = [[1, 2], [3, 4], [5, 6], [7, 8], [9, 10]] number = ... Read More

Python Group by matching second tuple value in list of tuples

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 09:03:26

392 Views

In this tutorial, we are going to write a program that groups all the tuples from a list that have same element as a second element. Let's see an example to understand it clearly.Input[('Python', 'tutorialspoints'), ('Management', 'other'), ('Django', 'tutorialspoints'), ('React', 'tutorialspoints'), ('Social', 'other'), ('Business', 'other')]Output{'tutorialspoint': [('Python', 'tutorialspoints'), ('Django', 'tutorialspoints'), ('React', ... Read More

Python Grayscaling of Images using OpenCV

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 09:00:25

3K+ Views

In this tutorial, we are going to learn how to change the grayscaling of an image using Grayscaling is the process of changing the images from different colour spaces like RGB, CMYK, etc.., to shades of gray. Install the OpenCV module if you didn't install it before.pip install opencv-pythonAfter installing ... Read More

Python Getting started with psycopg2-PostgreSQL

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:57:48

619 Views

In this tutorial, we are going to learn how to use PostgreSQL with Python. You have to install certain thing before going into the tutorial. Let's install them.Install the PostgreSQL with the guide..Install the Python module psycopg2 for PostgreSQL connection and working. Run the command to install it.pip install psycopg2Now, ... Read More

Python How to copy a nested list

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:53:49

361 Views

In this tutorial, we are going to see different ways to copy a nested list in Python. Let's see one by one.First, we will copy the nested list using loops. And it's the most common way.Example Live Demo# initializing a list nested_list = [[1, 2], [3, 4], [5, 6, 7]] # ... Read More

Python Indices of numbers greater than K

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:52:46

441 Views

In this tutorial, we are going to find the indices of the numbers that are greater than the given number K. Let's see the different ways to find them.A most common way to solve the problem is using the loops. Let's see the steps to solve the problem.Initialize the list ... Read More

Python Indexing a sublist

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:51:13

2K+ Views

In this tutorial, we are going to write a program that finds the index of a sublist element from the list. Let's see an example to understand it clearly.Inputnested_list = [[1, 2, 3], [4, 5], [6, 7, 8, 9]]OutputIndex of 7:- 2 Index of 5:- 1 Index of 3:- 0Let's ... Read More

Python Index specific cyclic iteration in list

Hafeezul Kareem

Hafeezul Kareem

Updated on 07-Jul-2020 08:49:32

1K+ Views

In this tutorial, we are going to write a program that cyclically iterates a list from the given Let's see the steps to solve the problemInitialize the list and index.Find the length of the list using len.Iterate over the list using the length.Find the index of the element using index ... Read More

Advertisements