Skip to content

Commit

Permalink
corretto timestamp per la serializzazione dei ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
m3ttiw committed Jun 4, 2020
1 parent 764c82d commit 7375257
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ def import_ratings(self) -> pd.DataFrame:
if self.__output_directory is not None:
try:
ratings_frame.to_csv("../../../datasets/{}/ratings_{}.csv".format(self.__output_directory,
time.time()), index=False, header=False)
int(time.time())), index=False, header=False)
except FileNotFoundError:
ratings_frame.to_csv("datasets/{}/ratings_{}.csv".format(self.__output_directory,
time.time()), index=False, header=False)
int(time.time())), index=False, header=False)

return ratings_frame

0 comments on commit 7375257

Please sign in to comment.