Posts from Python

Python bit functions on int with examples

By Ranjeet V

In this tutorial, we are going to learn about some bit functions on int in Python i. e. bit_length(), to_bytes() and from_bytes(). Let’s discuss these functions one by one. i.... Read More

Visualizing Crime against Women in India on a Map in Python

By Karun Thannickal

In this tutorial, we will see how to create a map to visualise crime against women in India in Python programming. We will create what is known as a choropleth map. A choropleth ma.... Read More

Formatting dates in Python

By Karun Thannickal

In, this tutorial we will learn about formatting dates in Python. We use the datetime module to do so. datetime is an inbuilt module in Python that allows us to easily work with d.... Read More

Group multiple occurrences of array elements ordered by first occurrence in Python

By Karun Thannickal

In this tutorial, we will learn how to group multiple occurrences of array elements. We order them by their first occurrences. We will implement this in Python. To do so, we requir.... Read More

Matrix multiplication in Python using Pytorch

By Ranjeet V

Hey guys, in this post we will see the matrix multiplication in Python using Pytorch. A general way to multiply matrices is by using nested loops. We can also use NumPy arrays for .... Read More

How to find symmetric pairs in a Python Dictionary

By Ranjeet V

Hello everyone, in this tutorial, we are going to see how we can find symmetric pairs in a Python Dictionary. suppose we have a dictionary called dict = {‘A’: 1, ‘.... Read More

pandas.DataFrame.loc[] in Python

By Ranjeet V

In this tutorial, we are going to learn about pandas.DataFrame.loc in Python. The loc property of pandas.DataFrame is helpful in many situations and can be used as if-then or if-th.... Read More

Removing a string from a list of strings in Python

By Ranjeet V

In this tutorial, we are going to learn how we can remove a given string from a list of strings in Python. We will be doing this in Python. Let’s see how we can do this. Ways.... Read More