I am doing some web scraping and storing the results in a Pandas Dataframe to subsequently output to csv. My questions is: how can I add a timestamp to the top of the Dataframe to record when I did the web scraping?
For example:
df1 = pd.DataFrame({'Fruits':['Apple','Banana','Cherry']})
would print:
Fruits
0 Apple
1 Banana
2 Cherry
how can I print:
9/9/2017
Fruits
0 Apple
1 Banana
2 Cherry