Python - Easy Articles
Given a String, compute all the characters, except spaces. Input : test_str = ‘geeksforgeeks 33 best’ Output : 19 Explanation : Total characters are 19.  Input :… Read More
Given a String list, extract frequency of specific characters in the whole strings list. Input : test_list = [“geeksforgeeks is best for geeks”], chr_list =… Read More
Python is a very powerful language and also very rich in libraries. phonenumbers is one of the modules that provides numerous features like providing basic… Read More
In this article, we will learn about the splitting of large dataframe into list of smaller dataframes. This can be done mainly in two different… Read More
Objects passed to the pandas.apply() are Series objects whose index is either the DataFrame’s index (axis=0) or the DataFrame’s columns (axis=1). By default (result_type=None), the… Read More
In this article, we will discuss how to compute the eigenvalues and right eigenvectors of a given square array using NumPy library.  Example: Suppose we… Read More
This article is going to be about how can we send text messages using Python. We will be using Fast2SMS API to send messages. You… Read More
Prerequisite: Regular Expressions in Python In this article, Let’s see how to extract date from the Excel file. Suppose our Excel file looks like below… Read More
In this article, we will discuss how to find unique rows in a NumPy array. To find unique rows in a NumPy array we are… Read More
Let us see how to convert a list of Celsius temperatures into Fahrenheit by converting them into NumPy array. The formula to convert Celsius to Fahrenheit… Read More
Given a Tuple, find the frequency of each element. Input : test_tup = (4, 5, 4, 5, 6, 6, 5) Output : {4: 2, 5: 3,… Read More
Let us see how to append values at the end of a NumPy array. Adding values at the end of the array is a necessary… Read More
Given a String, convert to vertical if horizontal and vice-versa. Input : test_str = ‘geeksforgeeks’  Output : g e e k s  Explanation : Horizontal… Read More
Given a mapping of characters to be replaced with corresponding values, perform all replacements at one, in one-liner. Input : test_str = 'geeksforgeeks is best',… Read More
Understanding input and output operations is fundamental to Python programming. With the print() function, you can display output in various formats, while the input() function… Read More
The NamedTuple class of the typing module added in Python 3.6 is the younger sibling of the namedtuple class in the collections module. The main… Read More
An Exception is an Unexpected Event, which occurs during the execution of the program. It is also known as a run time error. When that… Read More
In Python Pandas, we have the freedom to add different functions whenever needed like lambda function, sort function, etc. We can apply a lambda function… Read More
Multi Choice Box : It is used to display a window having a multiple options i.e items in EasyGUI, it can be used where there… Read More
In this article, let’s discuss how to compute the reciprocal for all the elements of a given NumPy array. Method 1: Through reciprocal_arr = 1/arr… Read More