Apply method with a numpy function

Report a typo

Complete the solution() function that accepts a pandas dataframe as an argument. Use the .apply() method with a numpy sqrt function on the second column '1' and create a new column 'sqrt'.

Store the result in the df variable and don't remove the print() statement.

Write a program in Python 3
def solution(df):
print(df)
___

Create a free account to access the full topic