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 Napster_GYROstream_20220731m_stream_.txt
8 filename (str): current filename
9 Returns: date_str (str)
11 date = re.findall(
r'_20\d{6}', filename)[0]
12 date = date.replace(
"_",
"")
13 date_str = date[:4]+
"-"+date[4:6]+
"-"+date[6:]