fix pandas dep. warning and version

This commit is contained in:
Kashif Rasul
2020-11-05 14:02:03 +01:00
parent 50683efdc6
commit af9d809730
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -112,9 +112,9 @@ class WeekOfYear(TimeFeature):
def __call__(self, index: pd.DatetimeIndex) -> np.ndarray:
if self.normalized:
return index.weekofyear / 51.0 - 0.5
return pd.Int64Index(index.isocalendar().week) / 51.0 - 0.5
else:
return index.weekofyear.map(float)
return pd.Int64Index(index.isocalendar().week).map(float)
class FourierDateFeatures(TimeFeature):
+1 -1
View File
@@ -19,7 +19,7 @@ setup(
'torch>=1.5.0',
'holidays',
'numpy',
'pandas>=1.0,<1.1',
'pandas>=1.1',
'scipy',
'tqdm',
'pydantic',