Create a class which stores account number, customer name and balance. Derive two classes from ‘Account’ class: ‘Savings’ and ‘Current’. The ‘Savings’ class stores minimum balance. The ‘Current’ class stores the over-due amount. Include member functions in the appropriate class to:-
&,[For current account overdue amount should be calculated.]
Create a class which stores employee name, id and salary. Derive two classes from ‘Employee’ class: ‘Regular’ and ‘Part-Time’. The ‘Regular’ class stores DA, HRA and basic salary, which is to be given during the run-time. The ‘Part-Time’ class stores the number of hours and pay per hour, which is also to be given during the run-time. Calculate the salary of a regular employee and a part-time employee.
Find out the mean, median and standard deviation of this numpy array -> np.array([1,5,3,100,4,48])
To fetch a row from dataframe given index x, we can use loc.
Df.loc[10] where 10 is the value of the index.
Code
get me the code