Wrong elapsed function ValueError: ['AfterStateHoliday']: Input contains NaN, infinity or a value too large for dtype('float32')

ValueError: [‘AfterStateHoliday’]: Input contains NaN, infinity or a value too large for dtype(‘float32’).

Seems that the error comes from casting nan as int, should do astype(int) after fillna(0) instead. Will test later and make a pr.

1 Like

Hi, I’m new to this, anyone know how to fix this error?

Go to

http://forums.fast.ai/t/afterstateholiday-input-contains-nan-infinity-or-a-value-too-large-for-dtype-float32/8586

Make a git pull. As the notebook is updated. Make surr u run the notebook in correct order, you cannot run the notebook top to bottom directly in this notebook. You need to first ser df=train and do preprocessing, and go back set df = test then repeat the process.