Answered step by step
Verified Expert Solution
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
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 wooStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started