In [ ]:
import pandas as pd
import random
mayoral_excuse_df = pd.read_csv("excuse.csv")
mayoral_excuse_df

In [ ]:
mayoral_excuse_df

In [ ]:
mayoral_excuse_df(mayoral_excuse_df['headline'][5])

In [ ]:
mayoral_excuse_df(10)

In [ ]:
random.choice(mayoral_excuse_df['excuse'])

In [ ]:
def mayoral_excuse_machine(name):
    name=name
    return "Sorry,"+ " " + name +" " + "I was late to"+ " meet you..."+ " "+ random.choice(mayoral_excuse_df['excuse'])

In [ ]:
mayoral_excuse_machine('Sasha')

In [ ]:
select_whatever_name_desired = input("Choose name:")

In [ ]:
mayoral_excuse_machine(select_whatever_name_desired)

In [ ]:
select_whatever_name_desired = input("Choose name:")

In [ ]: