Professional Documents
Culture Documents
DF Opeartions - 1 - Ak
DF Opeartions - 1 - Ak
DF Opeartions - 1 - Ak
ii. Add a new employee ‘Pawan’ in department ‘IT’ with basic pay 52000 and HRA
as 1000.
Emp.loc[4] = ['Pawan','IT',52000,1000]
iv. Deepak has resigned from the job, hence delete his record from the dataframe.
ii. Add a new column ‘Total’ by adding the columns ‘Qtr1’ , ‘Qtr2’ and ‘Qtr3’.
iv. Add a new store ‘Store4’ with sales amount as 260, 200 195,655 for quarter1,
quarter2 , quarter3 and total sales respectively.
(Note the index is been replaced)
Store.loc['Store4'] = [260,200,195,655]