Find Exponential of a column in Pandas-Python Last Updated : 02 Jul, 2021 Comments Improve Suggest changes Like Article Like Report Let's see how to find Exponential of a column in Pandas Dataframe. First, let's create a Dataframe: Python3 # importing pandas and # numpy libraries import pandas as pd import numpy as np # creating and initializing a list values= [ ['Rohan', 5, 50.59], ['Elvish', 2, 90.57], ['Deepak', 10, 98.51], ['Soni', 4, 40.24], ['Radhika', 1, 99.05], ['Vansh', 15, 85.56] ] # creating a pandas dataframe df = pd.DataFrame(values, columns = ['Name', 'University_Rank', 'University_Marks']) # displaying the data frame df Output: The exponential of any column is found out by using numpy.exp() function. This function calculates the exponential of the input array/Series. Syntax: numpy.exp(array, out = None, where = True, casting = ‘same_kind’, order = ‘K’, dtype = None) Return: An array with exponential of all elements of input array/Series. Example 1: Finding exponential of the single column (integer values). Python3 # importing pandas and # numpy libraries import pandas as pd import numpy as np # creating and initializing a list values= [ ['Rohan', 5, 50.59], ['Elvish', 2, 90.57], ['Deepak', 10, 98.51], ['Soni', 4, 40.24], ['Radhika', 1, 99.05], ['Vansh', 15, 85.56] ] # creating a pandas dataframe df = pd.DataFrame(values, columns = ['Name', 'University_Rank', 'University_Marks']) # finding the exponential value # of column using np.exp() function df['exp_value'] = np.exp(df['University_Rank']) # displaying the data frame df Output: Example 2: Finding exponential of the single column (Float values). Python3 # importing pandas and # numpy libraries import pandas as pd import numpy as np # creating and initializing a list values= [ ['Rohan', 5, 50.59], ['Elvish', 2, 90.57], ['Deepak', 10, 98.51], ['Soni', 4, 40.24], ['Radhika', 1, 99.05], ['Vansh', 15, 85.56] ] # creating a pandas dataframe df = pd.DataFrame(values, columns = ['Name', 'University_Rank', 'University_Marks']) # finding the exponential value # of column using np.exp() function df['exp_value'] = np.exp(df['University_Marks']) # displaying the data frame df Output: Comment More infoAdvertise with us Next Article Find Exponential of a column in Pandas-Python vanshgaur14866 Follow Improve Article Tags : Python Python-pandas Python pandas-dataFrame Python Pandas-exercise Practice Tags : python Similar Reads Get the data type of column in Pandas - Python Letâs see how to get data types of columns in the pandas dataframe. First, Letâs create a pandas dataframe. Example: Python3 # importing pandas library import pandas as pd # List of Tuples employees = [ ('Stuti', 28, 'Varanasi', 20000), ('Saumya', 32, 'Delhi', 25000), ('Aaditya', 25, 'Mumbai', 40000 3 min read Convert the data type of Pandas column to int In this article, we are going to see how to convert a Pandas column to int. Once a pandas.DataFrame is created using external data, systematically numeric columns are taken to as data type objects instead of int or float, creating numeric tasks not possible. We will pass any Python, Numpy, or Pandas 2 min read How to convert index in a column of the Pandas dataframe? Each row in a dataframe (i.e level=0) has an index value i.e value from 0 to n-1 index location and there are many ways to convert these index values into a column in a pandas dataframe. First, let's create a Pandas dataframe. Here, we will create a Pandas dataframe regarding student's marks in a pa 4 min read Find location of an element in Pandas dataframe in Python In this article, we will see how to find the position of an element in the dataframe using a user-defined function. Let's first Create a simple dataframe with a dictionary of lists. How to find an element in Pandas Dataframe?In a Pandas DataFrame, you can find the position of a specific element or c 3 min read Convert a Dataframe Column to Integer in Pandas Converting DataFrame columns to the correct data type is important especially when numeric values are mistakenly stored as strings. Let's learn how to efficiently convert a column to an integer in a Pandas DataFrameConvert DataFrame Column to Integer - using astype() Methodastype() method is simple 3 min read How to import excel file and find a specific column using Pandas? To read specific columns from an Excel file in Pandas, you have the flexibility to use either column indices or letters. This is achieved by setting the usecols argument, which can take a comma-separated string or a list containing column identifying letters or indices. In this article, we will lear 5 min read Get the substring of the column in Pandas-Python Now, we'll see how we can get the substring for all the values of a column in a Pandas dataframe. This extraction can be very useful when working with data. For example, we have the first name and last name of different people in a column and we need to extract the first 3 letters of their name to c 2 min read Python | Pandas Index.all() Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric python packages. Pandas is one of those packages and makes importing and analyzing data much easier. Pandas Index.all() function checks if all the elements in the index are true or not. I 2 min read Show all columns of Pandas DataFrame Pandas sometimes hides some columns by default if the DataFrame is too wide. To view all the columns in a DataFrame pandas provides a simple way to change the display settings using the pd.set_option() function. This function allow you to control how many rows or columns are displayed in the output. 2 min read Find the sum and maximum value of the two column in excel file using Pandas In these articles, we will discuss how to read data from excel and perform some mathematical operation and store it into a new column in DataFrame. Suppose our excel file looks like this. sample_data.xlsx Then we have to compute the sum of two-column and find out the maximum value and store into a n 2 min read Like