Loading...
Searching...
No Matches
Go to the documentation of this file.
5 def date(self, filename):
6 """Sets date column given the filename (it contains the date)
7 For example GYROstream_Pty_Ltd_Triller-Report_202204.csv
9 filename (str): current filename
10 Returns: date_str (str)
12 date = re.findall(
r'_\d{6}', filename)[0]
13 date = date.replace(
"_",
"")
14 date_str = date[:4]+
"-"+date[4:]+
"-01"