Q. How would you add a new column namely 'val' to a dataframe df that has 10 rows in it and has columns as 'Item', 'Qty', ‘Price’? You can choose to put any values of your choice.



Answer =

df[“val”] = [0,10,20,30,40,50,60,70,80,90]

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post