C4W1 Working with Generated Time Series grading problem “series_valid” not defined

refer the below comment thread to debug your code.