Yaswanth Varma has Published 377 Articles

Check if all bits of a number are set in Python

Yaswanth Varma

Yaswanth Varma

Updated on 30-Jul-2025 15:14:27

429 Views

In computers, data is stored in the binary form, which uses the two digits 0 and 1. Each digit in this format is known as a bit. In this article, we are going to check if all bits of a number are set in Python. A bit is said to ... Read More

Analyzing Data Activity with Pandas

Yaswanth Varma

Yaswanth Varma

Updated on 24-Jul-2025 18:21:03

323 Views

Pandas is a Python library that is designed for data manipulation and analysis. It provides the two data structures: Series: It is a one-dimensional labelled array (like a column in a spreadsheet). DataFrame: It is a two-dimensional labelled data structure (like a table), ... Read More

Calculate difference between adjacent elements in given list using Python

Yaswanth Varma

Yaswanth Varma

Updated on 24-Jul-2025 18:06:26

1K+ Views

Difference Between Adjacent List Elements  The given task is to calculate the difference between the adjacent elements in the given list using Python, i.e, we need to subtract the current element from the next element and repeat this for each element in the list (except the last one). Scenario ... Read More

Anagram Substring Search using Python

Yaswanth Varma

Yaswanth Varma

Updated on 24-Jul-2025 15:54:54

313 Views

An anagram is a rearrangement of the characters of a word or a phrase to generate a new word, using all the original characters exactly once. For example, thing and night are anagrams of each other. An anagram substring search includes two strings (text, pattern); we need to search the given text ... Read More

Analyzing Census Data in Python

Yaswanth Varma

Yaswanth Varma

Updated on 14-Jul-2025 15:33:52

729 Views

Census data is the source of information collected by the government to understand the population and its characteristics. It consists of details such as age, gender, education, and housing. This helps the government in understanding the current scenario as well as planning for the future. In this article, we ... Read More

Analysing Mobile Data Speeds from TRAI with Pandas in Python

Yaswanth Varma

Yaswanth Varma

Updated on 14-Jul-2025 15:23:33

199 Views

The Telecom Regulatory Authority of India (TRAI) publishes the data regarding mobile internet speeds for various telecom operations across India. It is useful for users and telecom companies to evaluate and compare the performance of different service providers. In this article, we are going to use pandas in Python to ... Read More

Analyze and Visualize Earthquake Data in Python with Matplotlib

Yaswanth Varma

Yaswanth Varma

Updated on 14-Jul-2025 15:18:35

779 Views

Earthquakes are natural phenomena that can have effects on human life and infrastructure. With the availability of geospatial and seismic datasets, scientists and researchers can analyze and visualize the earthquake data to identify the patterns, trends, and risk zones. Python, along with libraries like Matplotlib, Pandas, and NumPy, provides ... Read More

Anagram checking in Python program using collections.Counter()

Yaswanth Varma

Yaswanth Varma

Updated on 14-Jul-2025 15:08:00

267 Views

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase, using all the original letters exactly once. For example, thing and night are anagrams of each other. In this article, we are going to learn how to check an anagram in ... Read More

Alternate element summation in list (Python)

Yaswanth Varma

Yaswanth Varma

Updated on 14-Jul-2025 14:49:08

840 Views

The given task is to perform an alternate summation on a Python List. For example, adding the elements at even indices (0, 2, 4) or odd indices (1, 3, 5), depending on the requirement. This means we need to add every other element from the given list. Let us ... Read More

Alternate range slicing in list (Python)

Yaswanth Varma

Yaswanth Varma

Updated on 14-Jul-2025 14:22:54

851 Views

Slicing is used to extract a portion of a sequence (such as a list, a tuple, string) or other iterable objects. Python provides a flexible way to perform slicing using the following syntax. list[start:stop:step] Alternate Range Slicing The alternate range slicing is used to retrieve the ... Read More

Advertisements