Added username to the filename

This commit is contained in:
Misha 2023-08-08 01:25:26 -05:00
parent 1bcf1c98f3
commit e3324bbb60

View file

@ -40,7 +40,7 @@ df = pd.DataFrame(results)
current_date = date.today() current_date = date.today()
current_dir="/".join(inspect.getfile(inspect.currentframe()).split("/")[:-1]) current_dir="/".join(inspect.getfile(inspect.currentframe()).split("/")[:-1])
file_name_save=f'{current_dir}/mydata_{current_date}.csv' file_name_save=f'{current_dir}/mydata_{current_date}_{username}.csv'
df.to_csv(file_name_save, index=False) df.to_csv(file_name_save, index=False)
#+end_src #+end_src