21/11/2022 7:07 pm
Topic starter
1
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.
1 Answer
1
21/11/2022 7:08 pm
Topic starter
EMP = EMP.insert(column="Salary", value=sal, loc=3)