Data Science from Scratch: The #1 Data Science Guide for Everything A Data Scientist Needs to Know: Python, Linear Algebra, Statistics, Coding, Applications, Neural Networks, and Decision Tree by Steven Cooper

Data Science from Scratch: The #1 Data Science Guide for Everything A Data Scientist Needs to Know: Python, Linear Algebra, Statistics, Coding, Applications, Neural Networks, and Decision Tree by Steven Cooper

Author:Steven Cooper [Cooper, Steven]
Language: eng
Format: epub
Published: 2018-07-13T23:00:00+00:00


The following are the steps that you need to take to work this hypothesis:

Step 1: Extract information from Name

We are going to create a function that will extract the information in Name so that it is written as such:

Family_Name, Salutation. First Name

“def name_extract(word):

return word.split( ‘,’) [1].split( ‘.’) [0].strip()”

With this code, it would change “Jain, Mr. Kunal” to Mr. and “Jain, Miss. Jenika” to Miss. Then we can apply this function so that it will change the whole column.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.