I can’t find the function add_datepart for tabular data in version 1.0 of fastai, am I missing something?
It is not in the library now. You can copy paste it from here : https://github.com/fastai/fastai_docs/blob/master/dev_nb/x_009a_rossman_data_clean.ipynb
thanks a lot!
That link is 404’d, anyone have an up to date link? This is a very helpful function.
In case anyone is using fastai 1.0, but still need
add_datepart and the rest of the helper methods, you can find them all here (with excellent documentation and examples of usage):
add_datepart is located in fastai.tabular in fastai 1.0.
Direct link for those looking: https://github.com/fastai/fastai/blob/master/fastai/tabular/transform.py