Question: Python / Pandas: Let's say that we wanted to predict a contestants personality type based on the information in the data files. Your task is
PythonPandas: Let's say that we wanted to predict a contestants personality type based on the information in the data files. Your task is to create a DataFrame that lists the castawayid fullname and personalitytype for each castaway contestant. However, since most machine learning algorithms use numeric data, you want to change the personality types to the following numbers:
ISTJ
ISTP
ISFJ
ISFP
INFJ
INFP
INTJ
INTP
ESTP
ESTJ
ESFP
ESFJ
ENFP
ENFJ
ENTP
ENTJ
Missing values
Save this new DataFrame as Q and sort based on castawayid in ascending order.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
