zrnsm / pyculiarity

A Python port of Twitter's AnomalyDetection R Package
GNU General Public License v3.0
364 stars 146 forks source link

strptime() argument 1 must be str, not Timestamp #36

Open lssdhr opened 4 years ago

lssdhr commented 4 years ago

When the granularity is less than a minute, there is "TypeError: strptime() argument 1 must be str, not Timestamp" on line 152 in detect_ts.py. after converting the timestamp to string format, there is another "TypeError: cannot use a string pattern on a bytes-like object" on line 22 in date_util.py. Above issues have been fixed in this pull request. Please check and merge.