In [1]:
import pandas as pd
import numpy as np
df=pd.read_csv("excuse.csv")
import random
person = input('Enter your name: ')
location = input('Enter where you want to meet the Mayor: ')
n=range(0,len(df))
random=random.choice(n)
print("Sorry,",person,"I was late to",location,"to meet you,",df['excuse'].iloc[random],".")
print("")
print("This actually happened:",df['hyperlink'].iloc[random])


Enter your name: Harsha
Enter where you want to meet the Mayor: Times Square
Sorry, Harsha I was late to Times Square to meet you, we had some meetings at Gracie Mansion .

This actually happened: http://www.dnainfo.com/new-york/20150307/belle-harbor/de-blasio-30-minutes-late-rockaway-st-patricks-day-parade

In [ ]: