Closed
Description
Hello Antoinecarme,
thanks a lot for all your work done here.
I'm very new in python and programming at all, but thanks to your dokumentation i could start working with forecasting.
I got a FutureWaring as follows:
D:\Python\WPy64-3810\python-3.8.1.amd64\lib\site-packages\pyaf\TS\DateTime_Functions.py:50: FutureWarning:
Series.dt.weekofyear and Series.dt.week have been deprecated. Please use Series.dt.isocalendar().week instead.
I try to modifiy but that seem to make the problem bigger:
class cDateTime_Helper:
def __init__(self):
pass
def get_week_of_month(self, series):
lFirstDayOfMonth = series - pd.to_timedelta(series.dt.day - 1, unit='D')
return series.dt.weekofyear - lFirstDayOfMonth.dt.weekofyear + 1
#return series.dt.isocalendar().week - lFirstDayOfMonth.dt.isocalendar() + 1
thanks a lot
Thomas