Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am having some trouble figuring out how to get replace those outiers with the mean. I am not sure how to proceed. I've loaded

image text in transcribed
I am having some trouble figuring out how to get replace those outiers with the mean. I am not sure how to proceed. I've loaded the data in as 'sales' and everything is fine until it isn't mean sales. loc[sales[age'] >80, 'age'] mean 0 sales["age"] = np. where(sales["age"] >80, mean_value, sales[age]) Reply: "I am not sure how to that either, III ask Wait " Forward the email to Walt and ask for his help Here you gol I np.where solution mean = soles. Loc[sates ['age'] >80, mean, sales["age']] Sure... here it is: meon = sales. Loc[sales ['age'] >.80, 'age'].mean O soles ["age"] - np. where (sales["age"] \& Bo, meon_value, sales['age']) Sure.. that code block should read: mean = soles. Loc[soles ['age"] [ "age"] >80, mean)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

What qualities do you see as necessary for your line of work?

Answered: 1 week ago