Akshitha Mote has Published 55 Articles

Python - How to Concatenate more than two Pandas DataFrames?

Akshitha Mote

Akshitha Mote

Updated on 22-Jan-2025 13:44:05

1K+ Views

In this article, we will explore how to concatenate more than two pandas DataFrames using the pandas and numpy modules. Typically, the pandas.concat() method is used to concatenate multiple data frames. This method allows for concatenation along rows (axis=0) or columns (axis=1), providing flexibility in combining data efficiently. A ... Read More

Python Program to Print an Inverted Star Pattern

Akshitha Mote

Akshitha Mote

Updated on 22-Jan-2025 13:43:18

1K+ Views

In this article, let's try to print an inverted star pattern. This pattern involves publishing a series of stars(*) in each line arranged in a descending order. For example, if the N=5 then the output should be − ***** **** *** ** * For printing star (*) patterns frequently, ... Read More

Division Operators in Python?

Akshitha Mote

Akshitha Mote

Updated on 22-Jan-2025 13:41:32

1K+ Views

The Python division operator is used to divide two integer values and return a quotient. To perform a division operation, we use the / symbol. For example, 16 divided by 4 is written as 16 / 4, which returns 4 as the quotient. Here, 16 is known as divident and ... Read More

Accessing Values of Dictionary in Python

Akshitha Mote

Akshitha Mote

Updated on 22-Jan-2025 13:39:27

2K+ Views

Accessing Values of Dictionary in Python Accessing dictionary items in Python involves retrieving the values associated with specific keys within a dictionary data structure. Dictionaries are composed of key-value pairs, where each key is unique and maps to a corresponding value. Accessing dictionary items allows us to retrieve these values ... Read More

Python program to find factorial of a large number

Akshitha Mote

Akshitha Mote

Updated on 22-Jan-2025 13:36:57

780 Views

Before going to the solution let's understand about factorial. The factorial is a product of all the integers smaller than or equal to n. The mathematical representation is n!=n*(n -1)*(n-2)*(n-1)*....1 .For an example, 4! = 4*3*2*1 is 24. In this article let's try to find the different ways to find ... Read More

Check for balanced parentheses in Python

Akshitha Mote

Akshitha Mote

Updated on 22-Jan-2025 13:33:51

969 Views

In this article, we will solve the problem of checking balanced parentheses. Let's understand the problem statement, The following are the conditions for balanced parentheses − Every opening parenthesis has a corresponding closing parentheses. Parentheses should be closed in the ... Read More

Shuffle an Array in Python

Akshitha Mote

Akshitha Mote

Updated on 07-Jan-2025 11:15:58

2K+ Views

Shuffling an array involves rearranging the elements of the array into a random order. For example, if arr = [1, 2, 3, 4, 5], the output might be [5, 3, 2, 1, 4]. Let's explore different ways to shuffle an array in Python. Following are the various methods to shuffle ... Read More

Python program to find sum of elements in list

Akshitha Mote

Akshitha Mote

Updated on 07-Jan-2025 11:14:14

1K+ Views

In this article, lets see try to find the sum of elements in a list. For a given integer list, the program should return the sum of all elements of the list. For an example let's consider list_1 = [1, 2, 3, 4, 5] the output of the program should ... Read More

What is difference between raw_input() and input() functions in Python?

Akshitha Mote

Akshitha Mote

Updated on 07-Jan-2025 11:07:38

555 Views

Developers have to interact with users to get data or provide some sort of result. These days, most programs use a dialog box to give some type of input. In Python, there are two in-built functions to read the input from the user − input() ... Read More

Unique Number of Occurrences in Python

Akshitha Mote

Akshitha Mote

Updated on 20-Dec-2024 17:35:36

853 Views

Suppose we have an array, and we need to check whether each element has a unique number of occurrences. If no such element exists, we return false; otherwise, we return true. For example, given the array [1, 1, 2, 2, 2, 3, 4, 4, 4, 4], the function will return ... Read More

Advertisements