Question: Set first 50 row values of iris.data to Null values. Use numpy.nan Perform Imputation on 'iris.data' and save the transformed data in variable 'iris_imputed' .

  • Set first 50 row values ofiris.datato Null values. Usenumpy.nan
  • Perform Imputation on'iris.data'and save the transformed data in variable'iris_imputed'.
  • Hint : useImputerAPI, Replacenumpy.NaNvalues with mean of corresponding data.
  • Print the mean of every column using the below command.print(iris_imputed.mean(axis=0))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!