Question: WRITE IN PYTHON Write the answers to the following questions. 1- Create a 4x4 matrix with values from 1 to 16. 2- Create a DataFrame
WRITE IN PYTHON
Write the answers to the following questions.
1- Create a 4x4 matrix with values from 1 to 16.
2- Create a DataFrame that generates 4x3 random numbers. You can give the column and index names as you wish.
3- Arr=np.array([[50,12,np.nan,16],[np.nan, np.nan,80,70],[93,np.nan,16,np.nan]])
Convert the array of values to DataFrame. Try what can be done about missing values. (You can take the average value and write it to the missing values).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
