Consider the given DataFrame ‘Genre’:
|
Type |
Code |
0 |
Fiction |
F |
1 |
Non Fiction |
NF |
2 |
Drama |
D |
3 |
Poetry |
P |
Write suitable Python statements for the following:
i. Add a column called Num_Copies with the following data: [300,290,450,760].
ii. Add a new genre of type ‘Folk Tale' having code as “FT” and 600 number of copies.
iii. Rename the column ‘Code’ to ‘Book_Code’.