I read a csv file and did some modification of the data repeatedly. And I tried to save the csv with the file name "naver_news_YYYY_MM_DD_HH_MM.csv. However, If I run this program repeatedly, but I can find only last csv file with "naver_news.csv".
This is the code as followed.
df.to_csv("C:/Users/Administrator/PycharmProjects/news/naver_news.csv", date_format='%Y-%m-%d', index = False, sep=',', encoding='ms949') Then I can only find one "naver_news.csv" file in my computer. The result file nave that I am expecting is as followed.
naver_news_2018_09_17_10_42.csv naver_news_2018_09_17_11_42.csv naver_news_2018_09_17_12_42.csv naver_news_2018_09_17_13_42.csv Please let me know to save csv file with current current time.