Add_datepart not in 1.0?

(Alessandro) #1

I can’t find the function add_datepart for tabular data in version 1.0 of fastai, am I missing something?

0 Likes

(Dien Hoa TRUONG) #2

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

2 Likes

(Alessandro) #3

thanks a lot!

1 Like

#4

That link is 404’d, anyone have an up to date link? This is a very helpful function.

0 Likes

#5
2 Likes

(Andreas) #6

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):

0 Likes

(Peter Walkley) #7

add_datepart is located in fastai.tabular in fastai 1.0.

1 Like

#8

Direct link for those looking: https://github.com/fastai/fastai/blob/master/fastai/tabular/transform.py :slight_smile:

0 Likes