Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is a PIECE of the data; I would like to know how I can convert the categorical data into numerical data for my multilinear

image text in transcribed

Here is a PIECE of the data; I would like to know how I can convert the categorical data into numerical data for my multilinear regression project, this is strictly done is python can you show me a code to just convert the data into numerical and fit it? Remember it is for multilinear regression where "Charges" is dependent (y) and the rest are independent (x). I would like to see an implementation not an explanation, thank you !

in age Isex smoker O yes 1 no 3 no 19 female 18 male 28 male 33 male 32 male 31 female 46 female 37 female bmi children 27.9 33.77 33 22.705 28.88 25.74 33.44 27.74 region southwest southeast southeast northwest northwest southeast southeast northwest charges 16884.924 1725.5523 4449.462 21984.4706 3866.8552 3756.6216 8240.5896 7281.5056 woo

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

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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions