Loading...
Searching...
No Matches
Go to the documentation of this file.
4 def date(self, filename):
5 """Sets date column given the filename (it contains the date)
6 For example WW_MediaNet_GYROstream_2022-08-01_2022-08-31_Plays.csv
8 filename (str): current filename
9 Returns: date_str (str)
12 date = re.findall(
r'_\d{4}-\d{2}-\d{2}', filename)[0]
13 date=date.replace(
"_",
"")
14 date=date.replace(
"-",
"")
18 date_str = year+
"-"+month+
"-"+day