Q. Write the command using Insert() function to add a new column in the last place (3rd place) named "Salary" from the list Sal = [10000,15000,20000] in an existing dataframe named EMP already having 2 columns.
Answer :-
EMP.insert (loc = 3, column = "Salary", value = Sal)
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )