Vani Nalliappan

Vani Nalliappan

122 Articles Published

Articles by Vani Nalliappan

Page 13 of 13

Python program to filter perfect squares in a given series

Vani Nalliappan
Vani Nalliappan
Updated on 25-Mar-2026 660 Views

A perfect square is a number that can be expressed as the product of an integer with itself. In this tutorial, we'll learn how to filter perfect squares from a Pandas Series using different approaches. Given a series with numbers, we want to identify and filter only the perfect squares ? Input and Expected Output Input − 0 14 1 16 2 30 3 49 4 80 Output − 1 16 3 ...

Read More

How to use Python Pandas to find the total number of count for more than one special characters present in each word in a given series?

Vani Nalliappan
Vani Nalliappan
Updated on 25-Mar-2026 697 Views

When working with text data in Pandas, you might need to count words containing multiple special characters. This tutorial shows how to find the total count of words that have more than one special character in a given Series. Input Data Let's start with a sample series containing words with special characters ? import pandas as pd data = pd.Series(["fruits!!", "*cakes*", "$nuts", "#drinks"]) print(data) 0 fruits!! 1 *cakes* 2 $nuts 3 #drinks dtype: object ...

Read More
Showing 121–122 of 122 articles
« Prev 1 9 10 11 12 13 Next »
Advertisements