Answers for "def extract_title(input_df):"

0

def extract_title(input_df):

def get_title(name):
    if '.' in name:
        return name.split(',')[1].split('.')[0].strip()
    else:
        return 'Unknown'

ans=get_title('Braund, Mr. Owen Harris')
print (ans)
Posted by: Guest on February-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language