My pandas version is 1.1.0. In pts/feature/fourier_date_feature.py on line 52, pandas.tseries.frequencies.to_offset is used to normalize frequency, but when the freq_str parameter is W this function produces the following:
offset = to_offset('W')
multiple, granularity = offset.n, offset.name
print(granularity)
# this prints 'W-SUN' which is equivalent to 'W'
Because of the assertion on line 66, W-SUN and thus the initial W is not accepted. Changing W to W-SUN in the features dictionary (or adding both) had fixed this issue for me.
Hey!
My pandas version is 1.1.0. In
pts/feature/fourier_date_feature.py
on line 52,pandas.tseries.frequencies.to_offset
is used to normalize frequency, but when thefreq_str
parameter isW
this function produces the following:Because of the assertion on line 66,
W-SUN
and thus the initialW
is not accepted. ChangingW
toW-SUN
in thefeatures
dictionary (or adding both) had fixed this issue for me.Thanks for looking into this.