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.

to add a new column ‘val’ in dataframe ‘df’ we will write-
Here we are assigning 10 different values to ‘val’ column as df have 10 rows.

error: Content is protected !!