MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

MACHINE LEARNING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What this part of function was doing in titanic dataset? title ____ search = re.search(’ ([A-Za-z]+)’˙, name) if title ____ search:return title ____ search.group(1) return “”
A
Find the last name from passenger names
B
Extract title from passenger names
C
Extract the first name from passenger names
D
None of these
Explanation: 

Detailed explanation-1: -The titanic and titanic2 data frames describe the survival status of individual passengers on the Titanic. The titanic data frame does not contain information from the crew, but it does contain actual ages of half of the passengers. The principal source for data about Titanic passengers is the Encyclopedia Titanica.

Detailed explanation-2: -Getting the Titanic Dataset Head over to the Kaggle Titanic Competition webpage and on the “Data” tab click “Download” to get the csv of Titanic data. Next, in your Jupyter Notebook, click the “Upload” button and find the file titanic/train. csv and upload it into your Jupyter Notebook. Rename it ‘titanic.

Detailed explanation-3: -The titanic dataset gives the values of four categorical attributes for each of the 2201 people on board the Titanic when it struck an iceberg and sank. The attributes are social class (first class, second class, third class, crewmember), age (adult or child), sex, and whether or not the person survived.

There is 1 question to complete.