Added username to the filename
This commit is contained in:
parent
1bcf1c98f3
commit
e3324bbb60
|
@ -40,7 +40,7 @@ df = pd.DataFrame(results)
|
|||
|
||||
current_date = date.today()
|
||||
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)
|
||||
|
||||
#+end_src
|
||||
|
|
Loading…
Reference in a new issue