root value of a column pandas 1

root value of a column pandas

df1['Score_squareroot']=np.sqrt((df1['Score']))

Here is what the above code is Doing:
1. We are creating a new column called ‘Score_squareroot’
2. We are using the numpy library to calculate the square root of the ‘Score’ column
3. We are assigning the square root of the ‘Score’ column to the ‘Score_squareroot’ column

Similar Posts