You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For both UnixTimestampEncoder and OptimizedTimestampEncoder: If you specify a datetime_format string, the transformers are not able to reverse transform the data.
Steps to reproduce
fromrdtimportget_demofromrdt.transformers.datetimeimportUnixTimestampEncoder# update demo data with a different datetime formatdata2=get_demo()
data2['last_login'] = ['Jun 26, 2021', 'Feb 02, 2021', np.nan, 'Sep 26, 2020', 'Dec 22, 2020']
# use a datetime transformer on this data: give it the explicit format stringute=UnixTimestampEncoder(datetime_format='%b %d, %Y')
transformed=ute.fit_transform(data2, column='last_login')
# this step crashesute.reverse_transform(transformed)
ValueError: timedata'1624665600000000000'doesnotmatchformat'%b %d, %Y' (match)
The text was updated successfully, but these errors were encountered:
Environment Details
Error Description
For both
UnixTimestampEncoder
andOptimizedTimestampEncoder
: If you specify adatetime_format
string, the transformers are not able to reverse transform the data.Steps to reproduce
The text was updated successfully, but these errors were encountered: