Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

we saw that it is possible to replace or impute missing data based on simple population statistics such as the mean, median or mode

we saw that it is possible to replace or impute missing data based on simple population statistics such as 

we saw that it is possible to replace or impute missing data based on simple population statistics such as the mean, median or mode of the targeted feature. When a friend of yours hears that you are imputing the Age column by simply taking the mean or median of the non-missing data, she decides to show-off the following code which produces two telling plots plt.figure(figsize-(15,5)) plt.subplot (1, 2, 1) sns.boxenplot(train_df['Pclass'], train_df['Age'], hue-train_df[ 'Survived']) plt.subplot (1, 2, 2) sns.boxenplot (train_df [ 'Sex'], train_df[ 'Age'], hue-train_df[ 'Survived']) plt.show() 80 60 Survived 0 1 80 60 40 WWW Survived 0 1

Step by Step Solution

3.52 Rating (152 Votes )

There are 3 Steps involved in it

Step: 1

Your friends code is using Pythons seaborn library to create two boxen plots The first pl... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals of Cost Accounting

Authors: William Lanen, Shannon Anderson, Michael Maher

3rd Edition

9780078025525, 9780077517359, 77517350, 978-0077398194

More Books

Students also viewed these Programming questions

Question

Describe six danger signs of a bust-out artist.

Answered: 1 week ago

Question

10. What is amyloid-b and how does it relate to Alzheimers disease?

Answered: 1 week ago