Open gsheni opened 3 years ago
With the accessor approach the code should be:
ymd_format = Datetime(datetime_format='%Y~%m~%d')
df = pd.DataFrame({
'dates': ["2019/01/01", "2019/01/02", "2019/01/03"],
'ymd': ["2019~01~01", "2019~01~02", "2019~01~03"],
})
df.ww.init(logical_types={'ymd': ymd_format, 'dates': Datetime})
df.ww.select(ymd_format)