Find Exponential of a column in Pandas-Python Last Updated : 02 Jul, 2021 Summarize Comments Improve Suggest changes Share 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 Convert a Dataframe Column to Integer in Pandas V 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 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 Like