Hello How are you all? Can someone help me with c...
# daft-dev
d
Hello How are you all? Can someone help me with casting How to cast 20220422 --> 04-22-2022 ?
j
Hey @Dhruvil Shah ! I would classify this as parsing rather than casting. I think we’ll need some functionality to do this in pure Daft, but you can workaround it with Python for now:
.apply(lambda s: datetime.strptime(s, “%Y%m%d”), return_dtypr=daft.DataType.date())
We’ll add some functionality to do this with a Daft expression instead
d
Awesome
Thank you
j
cc @Colin Ho for the expressions stuff!