RollingMean: index values must not have NaT
Author: alanzhangleiCreated Sep 19, 2025Updated Jun 28, 2026
Labelsbug
[RollingMean: index values must not have NaT]
Code Sample, a copy-pastable example to reproduce your bug.
def rolling_mean(datetime, numeric):
x = pd.Series(numeric.values, index=datetime.values)
return apply_rolling_agg_to_series(
x,
np.mean,
self.window_length,
self.gap,
self.min_periods,
)
======datetime======
0 2023-06-18
1 2023-06-18
2 2023-06-18
3 2023-06-18
4 NaT --> the value [2023-06-19] was set to NaT when the rolling date is 2023-06-18
...
77246 NaT
77247 NaT
77248 NaT
77249 NaT
77250 NaT
Name: wh_item_day_train.day_dt, Length: 77251, dtype: datetime64[ns]Output of featuretools.show_info()
ValueError: index values must not have NaT
Source: alteryx/featuretools