Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
-
answerhappygod
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Post
by answerhappygod »

- 87234 0 1 0 1 1 1 0 4 Name Survived Dtype Int64 0 1 2 3 4 5 6 7 8 9 Sex Age 3 Male 20 1 Female 30 3 Female 20 1 Fema 1 (15.73 KiB) Viewed 16 times

- 87234 0 1 0 1 1 1 0 4 Name Survived Dtype Int64 0 1 2 3 4 5 6 7 8 9 Sex Age 3 Male 20 1 Female 30 3 Female 20 1 Fema 2 (22.59 KiB) Viewed 16 times
X = titanic_df.drop("Survived",axis=1)y = titanic_df["Survived"]
87234 0 1 0 1 1 1 0 4 Name: Survived, dtype: int64
0 1 2 3 4 5 6 7 8 9 Sex Age 3 male 20 1 female 30 3 female 20 1 female 30 3 3 1 3 male 3 female Pclass male 30 male 20 male 2 female 50 0 20 10
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!